Select pods based on label

I’m using grafana on top of kubernetes (Promotheus as data sources)

I know that you can filter on pod name like for example:
container_cpu_usage_seconds_total{pod="name-of-a-pod"}
But I would like to know if it’s possible to select pods based on label.

1 Like