From e164191eba943f82d301a8aa5bc8733d1135dc8e Mon Sep 17 00:00:00 2001 From: ofen <614942+ofen@users.noreply.github.com> Date: Mon, 30 Nov 2020 19:56:10 +0300 Subject: [PATCH 1/2] "Value groups/tags" added to template variables --- grafonnet/template.libsonnet | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/grafonnet/template.libsonnet b/grafonnet/template.libsonnet index 555015ce..a7c99431 100644 --- a/grafonnet/template.libsonnet +++ b/grafonnet/template.libsonnet @@ -27,6 +27,8 @@ label=null, allValues=null, tagValuesQuery='', + tagsQuery='', + useTags=false, current=null, hide='', regex='', @@ -50,10 +52,11 @@ regex: regex, sort: sort, tagValuesQuery: tagValuesQuery, + tagsQuery: tagsQuery, tags: [], tagsQuery: '', type: 'query', - useTags: false, + useTags: useTags, }, /** * Use an [interval variable](https://grafana.com/docs/grafana/latest/variables/variable-types/add-interval-variable/) to represent time spans such as '1m', '1h', '1d'. You can think of them as a dashboard-wide "group by time" command. Interval variables change how the data is grouped in the visualization. You can also use the Auto Option to return a set number of data points per time span. From 3487adc437730e1faf531d9149f67f5ecf4653a4 Mon Sep 17 00:00:00 2001 From: ofen <614942+ofen@users.noreply.github.com> Date: Mon, 30 Nov 2020 20:00:09 +0300 Subject: [PATCH 2/2] Update template.libsonnet --- grafonnet/template.libsonnet | 1 - 1 file changed, 1 deletion(-) diff --git a/grafonnet/template.libsonnet b/grafonnet/template.libsonnet index a7c99431..410afae4 100644 --- a/grafonnet/template.libsonnet +++ b/grafonnet/template.libsonnet @@ -54,7 +54,6 @@ tagValuesQuery: tagValuesQuery, tagsQuery: tagsQuery, tags: [], - tagsQuery: '', type: 'query', useTags: useTags, },