Template variables in dashboard:

(Example is for data source Elasticsearch – uses Lucene query)

  • Custom all value:
    • If you need to switch graph between showing sum over for example all customers to showing one specific customer in the same dashboard and data are not exactly straight forward you can use “custome all value”
    • This “custom all value” can contain anything you want – value, combination of values, even part of lucene query:
      • value14
      • (value1 OR value2)
      • value1 AND $somecolumns:somevalue
    • This whole text will be added into your query in graph
    • So you can have more metrics in graph and show only some of them based on selected “All” or specific value in template variable.