Closed tekert closed 2 months ago
Adjust your --collector.netstat.fields
flag to include the fragmentation stats (cf. /proc/net/snmp{,6}
). You should be able to get something like:
# HELP node_netstat_Ip_FragCreates Statistic IpFragCreates.
# TYPE node_netstat_Ip_FragCreates untyped
node_netstat_Ip_FragCreates 2
# HELP node_netstat_Ip_FragFails Statistic IpFragFails.
# TYPE node_netstat_Ip_FragFails untyped
node_netstat_Ip_FragFails 0
# HELP node_netstat_Ip_FragOKs Statistic IpFragOKs.
# TYPE node_netstat_Ip_FragOKs untyped
node_netstat_Ip_FragOKs 1
# HELP node_netstat_Ip_ReasmFails Statistic IpReasmFails.
# TYPE node_netstat_Ip_ReasmFails untyped
node_netstat_Ip_ReasmFails 0
# HELP node_netstat_Ip_ReasmOKs Statistic IpReasmOKs.
# TYPE node_netstat_Ip_ReasmOKs untyped
node_netstat_Ip_ReasmOKs 0
# HELP node_netstat_Ip_ReasmReqds Statistic IpReasmReqds.
# TYPE node_netstat_Ip_ReasmReqds untyped
node_netstat_Ip_ReasmReqds 0
# HELP node_netstat_Ip_ReasmTimeout Statistic IpReasmTimeout.
# TYPE node_netstat_Ip_ReasmTimeout untyped
node_netstat_Ip_ReasmTimeout 0
oh, noticed it needs "Ip(6|)_" format to scrape those stats, does it srapes them from /proc/net/snmp ?
Adding ...|Ip(6|)_(Reasm.*|Frag.*)|
... did the trick.
The netstat collector reads from /proc/net/netstat
, /proc/net/snmp
and /proc/net/snmp6
. See source: https://github.com/prometheus/node_exporter/blob/master/collector/netstat_linux.go
You can simplify Ip(6|)_(Reasm.*|Frag.*)
to Ip6?_(Reasm|Frag).*
.
I think this can be closed then
Host operating system: output of
uname -a
Any linux machine.
node_exporter version: output of
node_exporter --version
I noticed that the netstat collector says it exports
netstat -s
but they are mostly TCP and UDP stats, no IP fragmentation and reassembly statisticsFor example in SNMP we have:
It's there any way to get these metrics from node_exporter? they are all very valuable for us at least.