Volume Monitoring in Kubernetes with Prometheus
blog.argoproj.io
Volume Monitoring in Kubernetes with Prometheus
1–8 of 8 posts
Re: Volume Monitoring in Kubernetes with Prometheus
#2Re: Volume Monitoring in Kubernetes with Prometheus
#3Re: Volume Monitoring in Kubernetes with Prometheus
#4Re: Volume Monitoring in Kubernetes with Prometheus
#5Wouldn't it be better to run node_exporter (with only the fs metrics enabled) in a sidecar container in the pod that mounts the volume? That way, you can get the metrics scraped with the right pod labels. If you do it by node, you will only get the node name as a label.
Re: Volume Monitoring in Kubernetes with Prometheus
#6Yes, running the node exporter in a container is still tricky which is why we recommend running it straight on the host. I like the nsenter idea, wondering if it could be integrated without shelling out but I think there were some inherit problems with Goroutines and nsenter preventing that. If your interested in exploring this, feel free to open an github issues. Even better though would be support of unisolated workloads in kubernetes, similar to rkt stage1.
Re: Volume Monitoring in Kubernetes with Prometheus
#7I thought that node-exporter was meant to run in a container or on the host itself. Are there any potential downside to the single node-exporter in a side car approach?
Re: Volume Monitoring in Kubernetes with Prometheus
#8Wouldn't it be better to run node_exporter (with only the fs metrics enabled) in a sidecar container in the pod that mounts the volume? That way, you can get the metrics scraped with the right pod labels. If you do it by node, you will only get the node name as a label.
Yes. There is a disadvantage, that when your app already exposes metrics, you will have to tell prometheus' service discovery that you want to scrape two ports.