diff options
author | Patrick <will.pat.free@gmail.com> | 2018-10-30 16:54:09 -0400 |
---|---|---|
committer | Ben Kochie <superq@gmail.com> | 2018-10-30 21:54:09 +0100 |
commit | bdc0e7e67807ef995a29c36ad9377aff15ae266c (patch) | |
tree | 8fa087f27a49cc29da9561d9c3cdc56ff237a2b5 /collector/infiniband_linux.go | |
parent | 988f049040abd6136a6209727b2166de1a04db6a (diff) | |
download | prometheus_node_collector-bdc0e7e67807ef995a29c36ad9377aff15ae266c.tar.bz2 prometheus_node_collector-bdc0e7e67807ef995a29c36ad9377aff15ae266c.tar.xz prometheus_node_collector-bdc0e7e67807ef995a29c36ad9377aff15ae266c.zip |
Collect additional common Infiniband counters (#1120)
* Collect additional common Infiniband counters
Signed-off-by: Patrick Freeman <will.pat.free@gmail.com>
Diffstat (limited to 'collector/infiniband_linux.go')
-rw-r--r-- | collector/infiniband_linux.go | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/collector/infiniband_linux.go b/collector/infiniband_linux.go index 660e4bd..16134f3 100644 --- a/collector/infiniband_linux.go +++ b/collector/infiniband_linux.go | |||
@@ -54,14 +54,22 @@ func NewInfiniBandCollector() (Collector, error) { | |||
54 | 54 | ||
55 | // Filenames of all InfiniBand counter metrics including a detailed description. | 55 | // Filenames of all InfiniBand counter metrics including a detailed description. |
56 | i.counters = map[string]infinibandMetric{ | 56 | i.counters = map[string]infinibandMetric{ |
57 | "link_downed_total": {"link_downed", "Number of times the link failed to recover from an error state and went down"}, | 57 | "link_downed_total": {"link_downed", "Number of times the link failed to recover from an error state and went down"}, |
58 | "link_error_recovery_total": {"link_error_recovery", "Number of times the link successfully recovered from an error state"}, | 58 | "link_error_recovery_total": {"link_error_recovery", "Number of times the link successfully recovered from an error state"}, |
59 | "multicast_packets_received_total": {"multicast_rcv_packets", "Number of multicast packets received (including errors)"}, | 59 | "multicast_packets_received_total": {"multicast_rcv_packets", "Number of multicast packets received (including errors)"}, |
60 | "multicast_packets_transmitted_total": {"multicast_xmit_packets", "Number of multicast packets transmitted (including errors)"}, | 60 | "multicast_packets_transmitted_total": {"multicast_xmit_packets", "Number of multicast packets transmitted (including errors)"}, |
61 | "port_data_received_bytes_total": {"port_rcv_data", "Number of data octets received on all links"}, | 61 | "port_constraint_errors_received_total": {"port_rcv_constraint_errors", "Number of packets received on the switch physical port that are discarded"}, |
62 | "port_data_transmitted_bytes_total": {"port_xmit_data", "Number of data octets transmitted on all links"}, | 62 | "port_constraint_errors_transmitted_total": {"port_xmit_constraint_errors", "Number of packets not transmitted from the switch physical port"}, |
63 | "unicast_packets_received_total": {"unicast_rcv_packets", "Number of unicast packets received (including errors)"}, | 63 | "port_data_received_bytes_total": {"port_rcv_data", "Number of data octets received on all links"}, |
64 | "unicast_packets_transmitted_total": {"unicast_xmit_packets", "Number of unicast packets transmitted (including errors)"}, | 64 | "port_data_transmitted_bytes_total": {"port_xmit_data", "Number of data octets transmitted on all links"}, |
65 | "port_discards_received_total": {"port_rcv_discards", "Number of inbound packets discarded by the port because the port is down or congested"}, | ||
66 | "port_discards_transmitted_total": {"port_xmit_discards", "Number of outbound packets discarded by the port because the port is down or congested"}, | ||
67 | "port_errors_received_total": {"port_rcv_errors", "Number of packets containing an error that were received on this port"}, | ||
68 | "port_packets_received_total": {"port_rcv_packets", "Number of packets received on all VLs by this port (including errors)"}, | ||
69 | "port_packets_transmitted_total": {"port_xmit_packets", "Number of packets transmitted on all VLs from this port (including errors)"}, | ||
70 | "port_transmit_wait_total": {"port_xmit_wait", "Number of ticks during which the port had data to transmit but no data was sent during the entire tick"}, | ||
71 | "unicast_packets_received_total": {"unicast_rcv_packets", "Number of unicast packets received (including errors)"}, | ||
72 | "unicast_packets_transmitted_total": {"unicast_xmit_packets", "Number of unicast packets transmitted (including errors)"}, | ||
65 | } | 73 | } |
66 | 74 | ||
67 | // Deprecated counters for some older versions of InfiniBand drivers. | 75 | // Deprecated counters for some older versions of InfiniBand drivers. |