kubernetes-monitoring / kubernetes-mixin

A set of Grafana dashboards and Prometheus alerts for Kubernetes.
Apache License 2.0
2.12k stars 597 forks source link

Network dashboard: Exclude pods running in hostnetwork #928

Closed jkroepke closed 6 months ago

jkroepke commented 6 months ago

If pod running in hostnetwork namespace, they report false-positive network statistic. For example The network dashboard show me that kube-system has 400MB/s avg traffic egress, but in fact multiple pod running on hostnetwork namespace and reporting same traffic multiple times.

kube-state-metrics exposes the info via kube_pod_info, if a pod is running inside hostnetwork namespace