@ -52,20 +52,20 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) {
// Detailed description for all metrics.
descriptions := map [ string ] string {
"dumped_frames" : "" ,
"loss_of_signal_count " : "Number of times signal has been lost" ,
"loss_of_sync_count " : "Number of failures on either bit or transmission word boundaries" ,
"rx_frames" : "Number of frames received" ,
"error_frames" : "Number of errors in frames" ,
"invalid_tx_word_count " : "Number of invalid words transmitted by host port" ,
"dumped_frames_total " : "Number of dumped frames " ,
"loss_of_signal_total " : "Number of times signal has been lost" ,
"loss_of_sync_total " : "Number of failures on either bit or transmission word boundaries" ,
"rx_frames_total " : "Number of frames received" ,
"error_frames_total " : "Number of errors in frames" ,
"invalid_tx_word_total " : "Number of invalid words transmitted by host port" ,
"seconds_since_last_reset" : "Number of seconds since last host port reset" ,
"tx_words" : "Number of words transmitted by host port" ,
"invalid_crc_count " : "Invalid Cyclic Redundancy Check count" ,
"nos_count " : "Number Not_Operational Primitive Sequence received by host port" ,
"fcp_packet_aborts" : "Number of aborted packets" ,
"rx_words" : "Number of words received by host port" ,
"tx_frames" : "Number of frames transmitted by host port" ,
"link_failure_count " : "Number of times the host port link has failed" ,
"tx_words_total " : "Number of words transmitted by host port" ,
"invalid_crc_total " : "Invalid Cyclic Redundancy Check count" ,
"nos_total " : "Number Not_Operational Primitive Sequence received by host port" ,
"fcp_packet_aborts_total " : "Number of aborted packets" ,
"rx_words_total " : "Number of words received by host port" ,
"tx_frames_total " : "Number of frames transmitted by host port" ,
"link_failure_total " : "Number of times the host port link has failed" ,
"name" : "Name of Fibre Channel HBA" ,
"speed" : "Current operating speed" ,
"port_state" : "Current port state" ,
@ -129,20 +129,20 @@ func (c *fibrechannelCollector) Update(ch chan<- prometheus.Metric) error {
ch <- prometheus . MustNewConstMetric ( infoDesc , prometheus . GaugeValue , infoValue , host . Name , host . Speed , host . PortState , host . PortType , host . PortID , host . PortName , host . FabricName , host . SymbolicName , host . SupportedClasses , host . SupportedSpeeds , host . DevLossTMO )
// Then the counters
c . pushCounter ( ch , "dumped_frames" , host . Counters . DumpedFrames , host . Name )
c . pushCounter ( ch , "error_frames" , host . Counters . ErrorFrames , host . Name )
c . pushCounter ( ch , "invalid_crc_count " , host . Counters . InvalidCRCCount , host . Name )
c . pushCounter ( ch , "rx_frames" , host . Counters . RXFrames , host . Name )
c . pushCounter ( ch , "rx_words" , host . Counters . RXWords , host . Name )
c . pushCounter ( ch , "tx_frames" , host . Counters . TXFrames , host . Name )
c . pushCounter ( ch , "tx_words" , host . Counters . TXWords , host . Name )
c . pushCounter ( ch , "dumped_frames_total " , host . Counters . DumpedFrames , host . Name )
c . pushCounter ( ch , "error_frames_total " , host . Counters . ErrorFrames , host . Name )
c . pushCounter ( ch , "invalid_crc_total " , host . Counters . InvalidCRCCount , host . Name )
c . pushCounter ( ch , "rx_frames_total " , host . Counters . RXFrames , host . Name )
c . pushCounter ( ch , "rx_words_total " , host . Counters . RXWords , host . Name )
c . pushCounter ( ch , "tx_frames_total " , host . Counters . TXFrames , host . Name )
c . pushCounter ( ch , "tx_words_total " , host . Counters . TXWords , host . Name )
c . pushCounter ( ch , "seconds_since_last_reset" , host . Counters . SecondsSinceLastReset , host . Name )
c . pushCounter ( ch , "invalid_tx_word_count " , host . Counters . InvalidTXWordCount , host . Name )
c . pushCounter ( ch , "link_failure_count " , host . Counters . LinkFailureCount , host . Name )
c . pushCounter ( ch , "loss_of_sync_count " , host . Counters . LossOfSyncCount , host . Name )
c . pushCounter ( ch , "loss_of_signal_count " , host . Counters . LossOfSignalCount , host . Name )
c . pushCounter ( ch , "nos_count " , host . Counters . NosCount , host . Name )
c . pushCounter ( ch , "fcp_packet_aborts" , host . Counters . FCPPacketAborts , host . Name )
c . pushCounter ( ch , "invalid_tx_word_total " , host . Counters . InvalidTXWordCount , host . Name )
c . pushCounter ( ch , "link_failure_total " , host . Counters . LinkFailureCount , host . Name )
c . pushCounter ( ch , "loss_of_sync_total " , host . Counters . LossOfSyncCount , host . Name )
c . pushCounter ( ch , "loss_of_signal_total " , host . Counters . LossOfSignalCount , host . Name )
c . pushCounter ( ch , "nos_total " , host . Counters . NosCount , host . Name )
c . pushCounter ( ch , "fcp_packet_aborts_total " , host . Counters . FCPPacketAborts , host . Name )
}
return nil