Skip to content

Instantly share code, notes, and snippets.

@jameBoy
Created June 19, 2017 08:12
Show Gist options
  • Select an option

  • Save jameBoy/8289b7084c3905c8b6ce19e548cbdd2f to your computer and use it in GitHub Desktop.

Select an option

Save jameBoy/8289b7084c3905c8b6ce19e548cbdd2f to your computer and use it in GitHub Desktop.
How can I make a Grafana template with a variable reference another variable using Prometheus as a datasource?
With InfluxDB backend you can write e.g.:
SHOW TAG VALUES WITH KEY = "cpu" WHERE service =~ /$service/
where $service is another template variable.
https://stackoverflow.com/questions/41773162/how-can-i-make-a-grafana-template-with-a-variable-reference-another-variable-usi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment