TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Volume Monitoring in Kubernetes with Prometheus

58 pointsby qubit23over 7 years ago

5 comments

lobster_johnsonover 7 years ago
Wouldn'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.
评论 #15488897 未加载
peachiaover 7 years ago
kubelet v1.8 collects volume stats, the proposal linked in the summary was forked, and the fork accepted &amp; implemented: <a href="https:&#x2F;&#x2F;github.com&#x2F;kubernetes&#x2F;community&#x2F;pull&#x2F;930" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kubernetes&#x2F;community&#x2F;pull&#x2F;930</a>
discordianfishover 7 years ago
Hi, node exporter maintainer here.<p>Yes, 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.
bogomipzover 7 years ago
&gt;&quot; In this post, we discussed monitoring volumes on Kubernetes using Prometheus, node-exporter, and nsenter. One disadvantage of this approach is that node-exporter must be run as a privileged container. In the future, it may be better to have Kubelet collect the volume stats so that we can get the stats directly from Kubernetes instead of running node-exporter as a privileged container.&quot;<p>I 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?
alexnewmanover 7 years ago
Now I just need a flexdriver which receives the warning and activates the code to create a new ebs volume and adds it to whatever lm k8s volume. EBS gp2 is uselessly slow without just combining them into one super danger mount. As with everything else in amazon, never use one of x. Whenever I use S3 and EBS i put an abstraction between me and them because amazon.