diff options
author | Brian Brazil <brian.brazil@robustperception.io> | 2018-01-17 16:55:55 +0000 |
---|---|---|
committer | Ben Kochie <superq@gmail.com> | 2018-01-17 17:55:55 +0100 |
commit | a98067a294bd6cebde76d3078ba85b73b7166a74 (patch) | |
tree | 33bb5d657ffd7d20310400d4ffe37ecf2607d586 /collector/infiniband_linux.go | |
parent | b4d7ba119a19630cfd1a917f5a10015406a1e2cf (diff) | |
download | prometheus_node_collector-a98067a294bd6cebde76d3078ba85b73b7166a74.tar.bz2 prometheus_node_collector-a98067a294bd6cebde76d3078ba85b73b7166a74.tar.xz prometheus_node_collector-a98067a294bd6cebde76d3078ba85b73b7166a74.zip |
Make metrics better follow guidelines (#787)
* Improve stat linux metric names.
cpu is no longer used.
* node_cpu -> node_cpu_seconds_total for Linux
* Improve filesystem metric names with units
* Improve units and names of linux disk stats
Remove sector metrics, the bytes metrics cover those already.
* Infiniband counters should end in _total
* Improve timex metric names, convert to more normal units.
See
https://github.com/torvalds/linux/blob/3c073991eb417b6f785ddc6afbbdc369eb84aa6a/kernel/time/ntp.c#L909
for what stabil means, looks like a moving average of some form.
* Update test fixture
* For meminfo metrics that had "kB" units, add _bytes
* Interrupts counter should have _total
Diffstat (limited to 'collector/infiniband_linux.go')
-rw-r--r-- | collector/infiniband_linux.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collector/infiniband_linux.go b/collector/infiniband_linux.go index de8ce19..7c21976 100644 --- a/collector/infiniband_linux.go +++ b/collector/infiniband_linux.go | |||
@@ -57,8 +57,8 @@ func NewInfiniBandCollector() (Collector, error) { | |||
57 | "link_error_recovery_total": {"link_error_recovery", "Number of times the link successfully recovered from an error state"}, | 57 | "link_error_recovery_total": {"link_error_recovery", "Number of times the link successfully recovered from an error state"}, |
58 | "multicast_packets_received_total": {"multicast_rcv_packets", "Number of multicast packets received (including errors)"}, | 58 | "multicast_packets_received_total": {"multicast_rcv_packets", "Number of multicast packets received (including errors)"}, |
59 | "multicast_packets_transmitted_total": {"multicast_xmit_packets", "Number of multicast packets transmitted (including errors)"}, | 59 | "multicast_packets_transmitted_total": {"multicast_xmit_packets", "Number of multicast packets transmitted (including errors)"}, |
60 | "port_data_received_bytes": {"port_rcv_data", "Number of data octets received on all links"}, | 60 | "port_data_received_bytes_total": {"port_rcv_data", "Number of data octets received on all links"}, |
61 | "port_data_transmitted_bytes": {"port_xmit_data", "Number of data octets transmitted on all links"}, | 61 | "port_data_transmitted_bytes_total": {"port_xmit_data", "Number of data octets transmitted on all links"}, |
62 | "unicast_packets_received_total": {"unicast_rcv_packets", "Number of unicast packets received (including errors)"}, | 62 | "unicast_packets_received_total": {"unicast_rcv_packets", "Number of unicast packets received (including errors)"}, |
63 | "unicast_packets_transmitted_total": {"unicast_xmit_packets", "Number of unicast packets transmitted (including errors)"}, | 63 | "unicast_packets_transmitted_total": {"unicast_xmit_packets", "Number of unicast packets transmitted (including errors)"}, |
64 | } | 64 | } |