Question

DOKS Advanced Metrics (kube-state-metrics) missing graph for StatefulSets?

Hi there, I’ve successfully installed kube-state-metrics v2.4.1 within my kube-system namespace on my 1.21.9-do.0 cluster. Per DigitalOcean’s “How to Monitor Advanced Metrics for Kubernetes Pod Deployment Progress and Availability” documentation at https://docs.digitalocean.com/products/kubernetes/how-to/monitor-advanced/ I expected to see three new graphs under my insights tab, but I only see two: “Pod deployments” and “DaemonSet deployment status”. The “StatefulSet pods” graph is missing, even though I have StatefulSets running just fine. Any idea where I can find this graph, or is the documentation out of date?

I’ve done a manual kubectl port-forward -n kube-system svc/kube-state-metrics 8080 followed by curl http://localhost:8080/metrics and I can see a kube_statefulset_status_replicas_ready, kube_statefulset_status_replicas_updated, kube_statefulset_status_observed_generation, kube_statefulset_replicas, and other lines for EACH of my StatefulSets. So I believe the data is being collected and reported, but DOKS metrics polling is not parsing it correctly. Thanks for your help.


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer