counter compliance again

Signed-off-by: mhiles <hiles@hpe.com>
This commit is contained in:
mhiles 2020-07-13 12:00:43 -04:00
parent d80ae383b7
commit 10f6841caf
2 changed files with 30 additions and 30 deletions

View file

@ -58,7 +58,7 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) {
"rx_frames_total": "Number of frames received", "rx_frames_total": "Number of frames received",
"error_frames_total": "Number of errors in frames", "error_frames_total": "Number of errors in frames",
"invalid_tx_word_total": "Number of invalid words transmitted by host port", "invalid_tx_word_total": "Number of invalid words transmitted by host port",
"seconds_since_last_reset": "Number of seconds since last host port reset", "seconds_since_last_reset_total": "Number of seconds since last host port reset",
"tx_words_total": "Number of words transmitted by host port", "tx_words_total": "Number of words transmitted by host port",
"invalid_crc_total": "Invalid Cyclic Redundancy Check count", "invalid_crc_total": "Invalid Cyclic Redundancy Check count",
"nos_total": "Number Not_Operational Primitive Sequence received by host port", "nos_total": "Number Not_Operational Primitive Sequence received by host port",
@ -136,7 +136,7 @@ func (c *fibrechannelCollector) Update(ch chan<- prometheus.Metric) error {
c.pushCounter(ch, "rx_words_total", host.Counters.RXWords, 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_frames_total", host.Counters.TXFrames, host.Name)
c.pushCounter(ch, "tx_words_total", host.Counters.TXWords, 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, "seconds_since_last_reset_total", host.Counters.SecondsSinceLastReset, host.Name)
c.pushCounter(ch, "invalid_tx_word_total", host.Counters.InvalidTXWordCount, 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, "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_sync_total", host.Counters.LossOfSyncCount, host.Name)

View file

@ -662,9 +662,9 @@ node_fibrechannel_rx_frames_total{host="host0"} 3
# HELP node_fibrechannel_rx_words_total Number of words received by host port # HELP node_fibrechannel_rx_words_total Number of words received by host port
# TYPE node_fibrechannel_rx_words_total counter # TYPE node_fibrechannel_rx_words_total counter
node_fibrechannel_rx_words_total{host="host0"} 4 node_fibrechannel_rx_words_total{host="host0"} 4
# HELP node_fibrechannel_seconds_since_last_reset Number of seconds since last host port reset # HELP node_fibrechannel_seconds_since_last_reset_total Number of seconds since last host port reset
# TYPE node_fibrechannel_seconds_since_last_reset counter # TYPE node_fibrechannel_seconds_since_last_reset_total counter
node_fibrechannel_seconds_since_last_reset{host="host0"} 7 node_fibrechannel_seconds_since_last_reset_total{host="host0"} 7
# HELP node_fibrechannel_tx_frames_total Number of frames transmitted by host port # HELP node_fibrechannel_tx_frames_total Number of frames transmitted by host port
# TYPE node_fibrechannel_tx_frames_total counter # TYPE node_fibrechannel_tx_frames_total counter
node_fibrechannel_tx_frames_total{host="host0"} 5 node_fibrechannel_tx_frames_total{host="host0"} 5