This message was deleted.
s
This message was deleted.
s
There is no metric name in your query, and the filter criteria syntax is wrong.
Copy code
sum(metrics_name{k8s_pod_phase="running", k8s_namespace_name="abc"})
r
@Srikanth Chekuri i tried with the query - sum(k8s_pod_name{k8s_pod_phase="Running", k8s_namespace_name="breeze"}) --- but still it is not showing any data.
s
What is
*k8s_pod_name*
? Does it exist?
r
yes it exist and also am using k8s_pod_name in another query in legend filed.
s
That's metric key/value label pair not a metric name.
r
oh
so is there any way by which i can get number of running pods from a particular namespace.