In my dashboard Settings I created a variable “pw_namespace” which stores values retrieved from Prometheus datasource by using this Classic Query:
label_values(kube_pod_status_phase{namespace=~“pw-.*”}, namespace)
The “pw_namespace” variable is now displayed above the panel, and i see all the values when clicking on the drop-down menu arrow.
This is great, but i would like to see those values in a panel itself (let’s say in a Table format), so that I could get an instant overview of all the available items, instead of having to click the drop-down arrow and scroll.
But how do i query the templated variable “pw_namespace” in PromQL query builder if the variable depends on label_values() function which in turn is not part of PromQL?
Thank you.