-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be good to support kubelet_volume_stats* metrics #44
Comments
We don't have an idea about it since we just haven't got time to look into it. Also, PRs are welcome. |
Also running into this issue, after digging into it, I found that kubelet will expose those RefsFor more detailed info, see the codelines below with kubelet v1.19.0, hostpath: Try it outTested with manifests presented here, rancher/rancher#22061 (comment) metrics can be found via kubelet's
|
So, to make sure I understand this - |
I am using
The problem is still that metrics for all volumes return the same numbers when they are on the same filesystem. So they are of very limited use. It would be great if at least |
As discussed above, using local type volumes has some limitations and some of them are listed on sig-storage-local-static-provisioner best practices; on the other hand, currently, there is no such integration to get usage metrics of hostpath type volumes. As a workaround, I wrote a simple project. It has a simple logic to generate capacity/usage metrics for pv's which use local-path storage class (actually any storage class using a static path for provisioning volumes on the nodes). For those who want to take a look: local-path-provisioner-pv-metrics-exporter |
Hi, I had the same problem and wrote a metrics exporter for PV and PVCs incl. helm chart, maybe this helps someone :) |
I'll confess interest in this feature as well |
Isn't this already possible after #311 is merged, by changing the |
@justusbunsi From what I can see, the metric is present but has no useful value for local volumes, so the ability to set the volume type globally doesn't appear to help. |
Hi
I would like to use this metrics from cadvisor to send alarm if any volumn uses more than 80% required storage in kubernetes environment. local-path-provisioner however doesn't support his metrics. do you have any plan to support it or any reason to not support it?
there is a similar question on forum https://forums.rancher.com/t/kubelet-volume-stats-not-in-prometheus-stats/12390/2
The text was updated successfully, but these errors were encountered: