kubernetes-monitoring / kubernetes-mixin

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

Network dashboard: Exclude pods running in hostnetwork #928

Closed jkroepke closed 4 months ago

jkroepke commented 4 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