From e8c65dc384b0097737681cd85eea31c7b5358eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 30 Jun 2015 15:37:59 +0200 Subject: [PATCH] Updated OpenTSDB docs --- docs/sources/datasources/opentsdb.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/sources/datasources/opentsdb.md b/docs/sources/datasources/opentsdb.md index 4e85bdc9555..3d91559269d 100644 --- a/docs/sources/datasources/opentsdb.md +++ b/docs/sources/datasources/opentsdb.md @@ -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)