Commit 7a030e0c by Torkel Ödegaard

Finished improving InfluxDB docs, Closes #2270

parent 69c02715
......@@ -43,6 +43,10 @@ panel title, then edit. The editor allows you to select metrics and tags.
To add a tag filter click the plus icon to the right of the `WHERE` condition. You can remove tag filters by clicking on
the tag key and select `--remove tag filter--`.
### Regex matching
You can type in regex patterns for metric names or tag filter values, be sure to wrap the regex pattern in forward slashes (`/`). Grafana
will automaticallay adjust the filter tag condition to use the InfluxDB regex match condition operator (`=~`).
### Editor group by
To group by a tag click the plus icon after the `GROUP BY ($interval)` text. Pick a tag from the dropdown that appears.
You can remove the group by by clicking on the tag and then select `--remove group by--` from the dropdown.
......@@ -83,20 +87,18 @@ SHOW TAG VALUES WITH KEY = "hostname" WHERE region =~ /$region/
![](/img/influxdb/templating_simple_ex1.png)
### Annotations
Annotations allows you to overlay rich event information on top of graphs.
### InfluxDB 0.8.x
An example query:
![](/img/v1/influxdb_editor.png)
## InfluxDB 0.8 Filters & Templated queries
```SQL
SELECT title, description from events WHERE $timeFilter order asc
```
![](/img/animated_gifs/influxdb_templated_query.gif)
### InfluxDB 0.8.x
Use a distinct influxdb query in the filter query input box:
![](/img/v1/influxdb_editor.png)
```sql
select distinct(host) from app.status
```
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