https://github.com/wish/pod-netstat-exporter
Get detailed, per-pod network metrics for export to prometheus.
https://github.com/wish/pod-netstat-exporter
docker kubernetes prometheus-exporter
Last synced: about 1 year ago
JSON representation
Get detailed, per-pod network metrics for export to prometheus.
- Host: GitHub
- URL: https://github.com/wish/pod-netstat-exporter
- Owner: wish
- License: apache-2.0
- Created: 2019-12-16T18:27:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T00:38:17.000Z (over 5 years ago)
- Last Synced: 2025-04-09T00:02:04.237Z (over 1 year ago)
- Topics: docker, kubernetes, prometheus-exporter
- Language: Go
- Homepage:
- Size: 20.5 KB
- Stars: 10
- Watchers: 4
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pod-netstat-exporter [](https://godoc.org/github.com/wish/pod-netstat-exporter) [](https://goreportcard.com/report/github.com/wish/pod-netstat-exporter) [](https://quay.io/repository/wish/pod-netstat-exporter)
Get detailed, per-pod network metrics for export to prometheus. Right now it assumes that:
- You are using kubernetes, and the local kubelet API is accessible
- You are using docker
## Limitations
For the most part, a k8s pod maps 1-to-1 to a linux network namespace. This however is not
the case if the pod is using `hostNetwork: true`. In that case, the pod uses the default
network namespace of the host, and there are no per-pod metrics to collect. Rather than
report something misleading, `pod-netstat-exporter` just doesn't return any metrics for those
pods.