Skip to content

jwkohnen/conntrack-stats-exporter

Repository files navigation

Conntrack Statistics Exporter

The well known prometheus node exporter exports conntrack metrics off the /proc pseudo file system. The conntrack module developers consider that surface as deprecated and provide a CLI tool conntrack that shows some interesting metrics.

Motivation for this exporter was to survey insert_failed statistics due to a race condition in the Linux ipfilter conntrack kernel code. This is a subtle bug that in some circumstances escalates in high workload scenarios in Kubernetes clusters and causes drop of initial packets of NATted connections (both UDP, TCP.) The insert_failed statistic correlates with dropped connections due to this bug.

Prometheus Node Exporter

Since quite a while now Linux does export conntrack stats via the procfs and also Prometheus Mode Exporter exports them if available.

This Exporter will emit an log line at start up if the procfs makes the stats available.

Helm Chart

See Prometheus Community Charts. Kudos to @monotek!

Further information about the conntrack race bug and its effect on Kubernetes

About

Netfilter Conntrack Stats Exporter

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6