PVC related metrics

70 views
Skip to first unread message

BHARATH KUMAR

unread,
Feb 22, 2024, 9:55:42 PM2/22/24
to Prometheus Users
Hello All,

"I am running Prometheus and kube-state-metrics to collect Kubernetes-related data.

I can see the metric kube_persistentvolumeclaim_resource_requests_storage_bytes to observe the total storage. 

However, I am unable to find the usage metric, specifically kube_persistentvolumeclaim_resource_limits_storage_bytes

If this metric is unavailable, are there any alternatives to gather and visualize this data in Grafana?

Thanks in advance.

Regards,
Bharath. 

Siradj Eddine Fisli

unread,
Feb 23, 2024, 3:59:08 AM2/23/24
to BHARATH KUMAR, Prometheus Users
Hello, 
Try to use kubelet and cadvisor metrics

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/84010ef8-f890-40ac-8cd0-ee8e3fc75231n%40googlegroups.com.

Siradj Eddine Fisli

unread,
Feb 23, 2024, 4:34:56 AM2/23/24
to Prometheus Users

kubelet_volume_stats_used_bytes{job="myjob"}

BHARATH KUMAR

unread,
Feb 28, 2024, 9:37:31 PM2/28/24
to Prometheus Users
Thanks for your reply.

I am not able to see any metrics related to "kubelet". Do I need to add any additional configuration in my prometheus.yml file?

Siradj Eddine Fisli

unread,
Feb 29, 2024, 12:05:31 AM2/29/24
to BHARATH KUMAR, Prometheus Users
Yes indeed it must be added. (In case of using kube-prometheus-stack check if the servicemonitor for kubelet is created)

Reply all
Reply to author
Forward
0 new messages