Browse Source

invalid_tx_word_total -> invalid_tx_words_total

Signed-off-by: mhiles <hiles@hpe.com>
pull/1786/head
mhiles 4 years ago
parent
commit
6e02d5bff1
  1. 4
      collector/fibrechannel_linux.go
  2. 4
      collector/fixtures/e2e-output.txt

4
collector/fibrechannel_linux.go

@ -57,7 +57,7 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) {
"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",
"invalid_tx_words_total": "Number of invalid words transmitted by host port",
"seconds_since_last_reset_total": "Number of seconds since last host port reset",
"tx_words_total": "Number of words transmitted by host port",
"invalid_crc_total": "Invalid Cyclic Redundancy Check count",
@ -137,7 +137,7 @@ func (c *fibrechannelCollector) Update(ch chan<- prometheus.Metric) error {
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_total", host.Counters.SecondsSinceLastReset, host.Name)
c.pushCounter(ch, "invalid_tx_word_total", host.Counters.InvalidTXWordCount, host.Name)
c.pushCounter(ch, "invalid_tx_words_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)

4
collector/fixtures/e2e-output.txt

@ -641,8 +641,8 @@ node_fibrechannel_info{dev_loss_tmo="30",fabric_name="0",host="host0",port_id="0
# HELP node_fibrechannel_invalid_crc_total Invalid Cyclic Redundancy Check count
# TYPE node_fibrechannel_invalid_crc_total counter
node_fibrechannel_invalid_crc_total{host="host0"} 2
# HELP node_fibrechannel_invalid_tx_word_total Number of invalid words transmitted by host port
# TYPE node_fibrechannel_invalid_tx_word_total counter
# HELP node_fibrechannel_invalid_tx_words_total Number of invalid words transmitted by host port
# TYPE node_fibrechannel_invalid_tx_words_total counter
node_fibrechannel_invalid_tx_word_total{host="host0"} 8
# HELP node_fibrechannel_link_failure_total Number of times the host port link has failed
# TYPE node_fibrechannel_link_failure_total counter

Loading…
Cancel
Save