Hi,
Thank you for that answer!
I actually have 3 variables:
NameSpace:
Query: query_result(pg_exporter_last_scrape_duration_seconds)
Regexp: /.*kubernetes_namespace="([^"]+).*/
Release:
Query: query_result(pg_exporter_last_scrape_duration_seconds{kubernetes_namespace="$namespace"})
Regex: /.*release="([^"]+)/
Instance:
Query: query_result(up{release="$release",job="postgres_exporter"})
Regex: /.*instance="([^"]+).*/
I need to add another variable to reflect different ports on the same server(host)
In prometheus metrics it looks like this for example:
So how can I define a variable to give me a drop down list of servers with ports, or add it to the "instance" varabiable?
Thanks,
Tamar