Skip to content
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

How to get metrics like "kubelet_volume_stats_used_bytes" and "kubelet_volume_stats_available_bytes" to get PVC usage in k3s cluster? #6962

Closed
dsolanki28 opened this issue Feb 15, 2023 · 1 comment

Comments

@dsolanki28
Copy link

We would like to have metrics "kubelet_volume_stats_used_bytes" and "kubelet_volume_stats_available_bytes" available in prometheus to monitor PVC usage in k3s cluster. To enable them, we tried to install k3s cluster with arguements "--kubelet-arg kubelet-preferred-address-types=InternalIP,Hostname,ExternalIP --kubelet-arg enable-kubelet-volume-stats" but error showing the flags are unknown to k3s.

Request you please help us to enable these metrics, or other supported metrics to get PVC usage in k3s cluster.

@brandond
Copy link
Member

This is an issue with Kubernetes/cadvisor when used with containerd (or pretty much any other CRI backend now that dockershim has been removed). You can track it upstream at google/cadvisor#2785 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants