Skip to content

Commit

Permalink
grafana-builder: option to disable "Include All" for templates (#1292)
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitar Dimitrov <[email protected]>
  • Loading branch information
dimitarvdimitrov authored Jul 26, 2024
1 parent 7a01594 commit 3f0a5b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grafana-builder/grafana.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
},
},

addMultiTemplate(name, metric_name, label_name, hide=0, allValue='.+', sort=2):: self {
addMultiTemplate(name, metric_name, label_name, hide=0, allValue='.+', sort=2, includeAll=true):: self {
templating+: {
list+: [{
allValue: allValue,
Expand All @@ -54,7 +54,7 @@ local utils = import 'mixin-utils/utils.libsonnet';
},
datasource: '$datasource',
hide: hide,
includeAll: true,
includeAll: includeAll,
label: name,
multi: true,
name: name,
Expand Down

0 comments on commit 3f0a5b0

Please sign in to comment.