mirror of
				https://github.com/prometheus/node_exporter.git
				synced 2025-08-20 18:33:52 -07:00 
			
		
		
		
	counter compliance again
Signed-off-by: mhiles <hiles@hpe.com>
This commit is contained in:
		
							parent
							
								
									d80ae383b7
								
							
						
					
					
						commit
						10f6841caf
					
				|  | @ -52,32 +52,32 @@ func NewFibreChannelCollector(logger log.Logger) (Collector, error) { | ||||||
| 
 | 
 | ||||||
| 	// Detailed description for all metrics.
 | 	// Detailed description for all metrics.
 | ||||||
| 	descriptions := map[string]string{ | 	descriptions := map[string]string{ | ||||||
| 		"dumped_frames_total":      "Number of dumped frames", | 		"dumped_frames_total":            "Number of dumped frames", | ||||||
| 		"loss_of_signal_total":     "Number of times signal has been lost", | 		"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", | 		"loss_of_sync_total":             "Number of failures on either bit or transmission word boundaries", | ||||||
| 		"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", | ||||||
| 		"fcp_packet_aborts_total":  "Number of aborted packets", | 		"fcp_packet_aborts_total":        "Number of aborted packets", | ||||||
| 		"rx_words_total":           "Number of words received by host port", | 		"rx_words_total":                 "Number of words received by host port", | ||||||
| 		"tx_frames_total":          "Number of frames transmitted 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", | 		"link_failure_total":             "Number of times the host port link has failed", | ||||||
| 		"name":                     "Name of Fibre Channel HBA", | 		"name":                           "Name of Fibre Channel HBA", | ||||||
| 		"speed":                    "Current operating speed", | 		"speed":                          "Current operating speed", | ||||||
| 		"port_state":               "Current port state", | 		"port_state":                     "Current port state", | ||||||
| 		"port_type":                "Port type, what the port is connected to", | 		"port_type":                      "Port type, what the port is connected to", | ||||||
| 		"symbolic_name":            "Symoblic Name", | 		"symbolic_name":                  "Symoblic Name", | ||||||
| 		"node_name":                "Node Name as hexadecimal string", | 		"node_name":                      "Node Name as hexadecimal string", | ||||||
| 		"port_id":                  "Port ID as string", | 		"port_id":                        "Port ID as string", | ||||||
| 		"port_name":                "Port Name as hexadecimal string", | 		"port_name":                      "Port Name as hexadecimal string", | ||||||
| 		"fabric_name":              "Fabric Name; 0 if PTP", | 		"fabric_name":                    "Fabric Name; 0 if PTP", | ||||||
| 		"dev_loss_tmo":             "Device Loss Timeout in seconds", | 		"dev_loss_tmo":                   "Device Loss Timeout in seconds", | ||||||
| 		"supported_classes":        "The FC classes supported", | 		"supported_classes":              "The FC classes supported", | ||||||
| 		"supported_speeds":         "The FC speeds supported", | 		"supported_speeds":               "The FC speeds supported", | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	i.metricDescs = make(map[string]*prometheus.Desc) | 	i.metricDescs = make(map[string]*prometheus.Desc) | ||||||
|  | @ -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) | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue