As mentioned here: "Currently namespace
, pod
are default labels provided in the metrics."
kubectl -n mynamespace get pods --show-labels
show the label values that are defined in deployment yaml for Kubernetes
Goal is to use default label(namespace
& pod
provided by kubernetes) values through Grafana dashboard's promQL, that prometheus monitor.
sum(container_memory_working_set_bytes{namespace="mynamespace",pod=~"unknown"}) by (pod)
How to view the values of default label pod
using kubectl
?