Prometheus metrics are not matching with kubestate metrics in kubernetes dashboard

606 views Asked by At

Metrics in Kubernetes Dashboard: enter image description here

kubectl top report:enter image description here

Metrics in Prometheus Grafana Dashboard: enter image description here

I installed Prometheus operator setup using helm chart prometheus-community/kube-prometheus-stack. Can anyone explain me why there a difference in the metrics ? As both prometheus & kubernetes dashboard use kube-state-metrics. which one is better to use ?

1

There are 1 answers

1
Zambozo On

I think that on the K8s dashboard you are looking at aggregated for 7 days, and on the grafana for the last value of the metric? But it can be something else there is too much info missing. Are we talking about a pod or node? does kubectl top report something totally different?