Skip to content

Commit 6793e0e

Browse files
authored
Merge pull request #2019 from treydock/ib-counters
Add more Infiniband counters
2 parents 7029c71 + f0b2449 commit 6793e0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

collector/infiniband_linux.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ func NewInfiniBandCollector(logger log.Logger) (Collector, error) {
6060
"legacy_unicast_packets_transmitted_total": "Number of unicast packets transmitted",
6161
"legacy_data_transmitted_bytes_total": "Number of data octets transmitted on all links",
6262
"legacy_packets_transmitted_total": "Number of data packets received on all links",
63+
"excessive_buffer_overrun_errors_total": "Number of times that OverrunErrors consecutive flow control update periods occurred, each having at least one overrun error.",
6364
"link_downed_total": "Number of times the link failed to recover from an error state and went down",
6465
"link_error_recovery_total": "Number of times the link successfully recovered from an error state",
66+
"local_link_integrity_errors_total": "Number of times that the count of local physical errors exceeded the threshold specified by LocalPhyErrors.",
6567
"multicast_packets_received_total": "Number of multicast packets received (including errors)",
6668
"multicast_packets_transmitted_total": "Number of multicast packets transmitted (including errors)",
6769
"physical_state_id": "Physical state of the InfiniBand port (0: no change, 1: sleep, 2: polling, 3: disable, 4: shift, 5: link up, 6: link error recover, 7: phytest)",
@@ -145,8 +147,10 @@ func (c *infinibandCollector) Update(ch chan<- prometheus.Metric) error {
145147
c.pushCounter(ch, "legacy_unicast_packets_transmitted_total", port.Counters.LegacyPortUnicastXmitPackets, port.Name, portStr)
146148
c.pushCounter(ch, "legacy_data_transmitted_bytes_total", port.Counters.LegacyPortXmitData64, port.Name, portStr)
147149
c.pushCounter(ch, "legacy_packets_transmitted_total", port.Counters.LegacyPortXmitPackets64, port.Name, portStr)
150+
c.pushCounter(ch, "excessive_buffer_overrun_errors_total", port.Counters.ExcessiveBufferOverrunErrors, port.Name, portStr)
148151
c.pushCounter(ch, "link_downed_total", port.Counters.LinkDowned, port.Name, portStr)
149152
c.pushCounter(ch, "link_error_recovery_total", port.Counters.LinkErrorRecovery, port.Name, portStr)
153+
c.pushCounter(ch, "local_link_integrity_errors_total", port.Counters.LocalLinkIntegrityErrors, port.Name, portStr)
150154
c.pushCounter(ch, "multicast_packets_received_total", port.Counters.MulticastRcvPackets, port.Name, portStr)
151155
c.pushCounter(ch, "multicast_packets_transmitted_total", port.Counters.MulticastXmitPackets, port.Name, portStr)
152156
c.pushCounter(ch, "port_constraint_errors_received_total", port.Counters.PortRcvConstraintErrors, port.Name, portStr)

0 commit comments

Comments
 (0)