Commit 2696d6cd by bergquist

Merge branch 'master' of https://github.com/andrewhowdencom/grafana into andrewhowdencom-master

parents c73e86e5 6edbc460
...@@ -72,4 +72,8 @@ label_values(hostname) ...@@ -72,4 +72,8 @@ label_values(hostname)
You can also use raw queries & regular expressions to extract anything you might need. You can also use raw queries & regular expressions to extract anything you might need.
### Using templated variables in queries
When the `Include All` option or `Multi-Value` option is enabled, Grafana converts the labels from plain text to a regex compatible string. If your labels include special values such as `.` or `/`, you will need to use the `=~` or regex match in your Prometheus query. For example, a query for ALERTS, a template query of `label(ALERTS,instance)` and an instance value of `http://example.com` would become `ALERTS{instance=~$instance}` instead of `ALERTS{instance=$instance}`.
![](/img/v2/prometheus_templating.png) ![](/img/v2/prometheus_templating.png)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment