Search code examples
kubernetesgrafanametrics

How to show only the pod name when hovering Grafana chart from Kubernetes "container_memory_usage_bytes" metric?


I created this chart using Grafana and the query rate(container_memory_usage_bytes{ image!="", container_name!="POD"}[5m]) /1024 / 1024.

When highlighting the data points I receive all the details about the pod that is too much information.

How can I show only the pod field?

enter image description here


Solution

  • Found the answer: go to Options / Legend and include the field to be used as legend :) In this case: {{pod}}

    enter image description here

    Thanks Fabio Vieira