netclass_linux: remove varying labels from the 'up' metric (#1243)
* netclass_linux: remove varying labels from the 'up' metric This moves the variable label values such as 'operstate' out of the 'network_up' metric and into a separate metric called '_info'. This allows the 'up' metric to remain continous over state changes. Fixes #1236 Signed-off-by: Paul Gier <pgier@redhat.com>
This commit is contained in:
parent
6ea0aa73e4
commit
e0d6d11859
4 changed files with 26 additions and 8 deletions
|
|
@ -1835,6 +1835,9 @@ node_network_iface_link{interface="eth0"} 2
|
|||
# HELP node_network_iface_link_mode iface_link_mode value of /sys/class/net/<iface>.
|
||||
# TYPE node_network_iface_link_mode gauge
|
||||
node_network_iface_link_mode{interface="eth0"} 1
|
||||
# HELP node_network_info Non-numeric data from /sys/class/net/<iface>, value is always 1.
|
||||
# TYPE node_network_info gauge
|
||||
node_network_info{address="01:01:01:01:01:01",broadcast="ff:ff:ff:ff:ff:ff",device="eth0",duplex="full",ifalias="",operstate="up"} 1
|
||||
# HELP node_network_mtu_bytes mtu_bytes value of /sys/class/net/<iface>.
|
||||
# TYPE node_network_mtu_bytes gauge
|
||||
node_network_mtu_bytes{interface="eth0"} 1500
|
||||
|
|
@ -2045,9 +2048,9 @@ node_network_transmit_packets_total{device="💩0"} 304261
|
|||
# HELP node_network_transmit_queue_length transmit_queue_length value of /sys/class/net/<iface>.
|
||||
# TYPE node_network_transmit_queue_length gauge
|
||||
node_network_transmit_queue_length{interface="eth0"} 1000
|
||||
# HELP node_network_up Valid operstate for interface.
|
||||
# HELP node_network_up Value is 1 if operstate is 'up', 0 otherwise.
|
||||
# TYPE node_network_up gauge
|
||||
node_network_up{address="01:01:01:01:01:01",broadcast="ff:ff:ff:ff:ff:ff",duplex="full",ifalias="",interface="eth0",operstate="up"} 1
|
||||
node_network_up{device="eth0"} 1
|
||||
# HELP node_nf_conntrack_entries Number of currently allocated flow entries for connection tracking.
|
||||
# TYPE node_nf_conntrack_entries gauge
|
||||
node_nf_conntrack_entries 123
|
||||
|
|
|
|||
|
|
@ -1835,6 +1835,9 @@ node_network_iface_link{device="eth0"} 2
|
|||
# HELP node_network_iface_link_mode iface_link_mode value of /sys/class/net/<iface>.
|
||||
# TYPE node_network_iface_link_mode gauge
|
||||
node_network_iface_link_mode{device="eth0"} 1
|
||||
# HELP node_network_info Non-numeric data from /sys/class/net/<iface>, value is always 1.
|
||||
# TYPE node_network_info gauge
|
||||
node_network_info{address="01:01:01:01:01:01",broadcast="ff:ff:ff:ff:ff:ff",device="eth0",duplex="full",ifalias="",operstate="up"} 1
|
||||
# HELP node_network_mtu_bytes mtu_bytes value of /sys/class/net/<iface>.
|
||||
# TYPE node_network_mtu_bytes gauge
|
||||
node_network_mtu_bytes{device="eth0"} 1500
|
||||
|
|
@ -2045,9 +2048,9 @@ node_network_transmit_packets_total{device="💩0"} 304261
|
|||
# HELP node_network_transmit_queue_length transmit_queue_length value of /sys/class/net/<iface>.
|
||||
# TYPE node_network_transmit_queue_length gauge
|
||||
node_network_transmit_queue_length{device="eth0"} 1000
|
||||
# HELP node_network_up Valid operstate for device.
|
||||
# HELP node_network_up Value is 1 if operstate is 'up', 0 otherwise.
|
||||
# TYPE node_network_up gauge
|
||||
node_network_up{address="01:01:01:01:01:01",broadcast="ff:ff:ff:ff:ff:ff",device="eth0",duplex="full",ifalias="",operstate="up"} 1
|
||||
node_network_up{device="eth0"} 1
|
||||
# HELP node_nf_conntrack_entries Number of currently allocated flow entries for connection tracking.
|
||||
# TYPE node_nf_conntrack_entries gauge
|
||||
node_nf_conntrack_entries 123
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue