You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes, we have correctly exposed the host /proc and /sys.
What did you do that produced an error?
We enabled qdisc metrics to correlate a networking issue with packet drops in an eBPF program, but it turns out that node_exporter only gives metrics for the qdisc that have no parent. With tc -s qdisc show we see a lot of packet drops on ebpf qdiscs (type clsact) which have a parent qdisc defined, but because node_exporter does not expose these it is very hard to correlate our networking issues with packet drops here. Looking at the implementation this is logical, since node_exporter by default skips all qdiscs that have a parent.
I expected to see metrics for all qdiscs on the host, and to let users worry about possible cardinality issues. This collector is disabled by default anyway.
What did you see instead?
I saw only metrics for the root qdisc, which in this case is not that relevant.
Possible fixes
also show metrics for non-root discs (remove the condition in the linked function)
possibly do this based on a CLI flag or environment variable?
The text was updated successfully, but these errors were encountered:
Yeah dunno why we only expose root level, probably to ensure the metrics can be summed up without sepearating root and child queues. Any suggestions how to handle this?
Host operating system: output of
uname -a
Linux k8s-secnet-node6 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux
node_exporter version: output of
node_exporter --version
node_exporter command line flags
node_exporter log output
not relevant
Are you running node_exporter in Docker?
yes, we have correctly exposed the host /proc and /sys.
What did you do that produced an error?
We enabled qdisc metrics to correlate a networking issue with packet drops in an eBPF program, but it turns out that node_exporter only gives metrics for the qdisc that have no parent. With
tc -s qdisc show
we see a lot of packet drops on ebpf qdiscs (typeclsact
) which have a parent qdisc defined, but because node_exporter does not expose these it is very hard to correlate our networking issues with packet drops here. Looking at the implementation this is logical, since node_exporter by default skips all qdiscs that have a parent.See
node_exporter/collector/qdisc_linux.go
Line 151 in b9d0932
What did you expect to see?
I expected to see metrics for all qdiscs on the host, and to let users worry about possible cardinality issues. This collector is disabled by default anyway.
What did you see instead?
I saw only metrics for the root qdisc, which in this case is not that relevant.
Possible fixes
The text was updated successfully, but these errors were encountered: