mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Updated OpenTSDB docs
This commit is contained in:
parent
e508db994e
commit
e8c65dc384
@ -27,6 +27,14 @@ Open a graph in edit mode by click the title.
|
||||
|
||||
![](/img/v2/opentsdb_query_editor.png)
|
||||
|
||||
## Templating queries
|
||||
|
||||
When using OpenTSDB with a template variable of `query` type you can use following syntax for lookup.
|
||||
|
||||
metrics() // returns metric names
|
||||
tag_names(cpu) // return tag names (i.e. keys) for a specific cpu metric
|
||||
tag_values(cpu, hostname) // return tag values for metric cpu and tag key hostname
|
||||
|
||||
For details on opentsdb metric queries checkout the official [OpenTSDB documentation](http://opentsdb.net/docs/build/html/index.html)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user