0

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 ?

  • What exact command do you use, what kind of query did you apply using prometheus ? Please paste commands and arguments you have used. – Malgorzata Dec 14 '20 at 17:16
  • Memory Usage Query in Grafana : sum(container_memory_working_set_bytes{cluster="$cluster", namespace="$namespace", container!="", image!=""}) by (pod) – Santhosh reddy Dec 15 '20 at 14:01
  • 1
    Did you take a look https://github.com/lensapp/lens/issues/607 ? – Malgorzata Dec 18 '20 at 15:20

1 Answers1

0

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?

Zambozo
  • 456
  • 4
  • 12