diff --git a/operations/tempo-mixin/Makefile b/operations/tempo-mixin/Makefile index 16471f8fb0c..4ac84166e04 100644 --- a/operations/tempo-mixin/Makefile +++ b/operations/tempo-mixin/Makefile @@ -1,6 +1,6 @@ .PHONY: all check install dashboards alerts rules -all: dashboards alerts rules +all: install dashboards alerts rules check: all git diff --exit-code -- yamls/ @@ -8,11 +8,11 @@ check: all install: jb install -dashboards: install +dashboards: jsonnet -J vendor -S dashboards.jsonnet -m yamls -alerts: install +alerts: jsonnet -J vendor -S alerts.jsonnet > yamls/alerts.yaml -rules: install +rules: jsonnet -J vendor -S rules.jsonnet > yamls/rules.yaml diff --git a/operations/tempo-mixin/dashboard-utils.libsonnet b/operations/tempo-mixin/dashboard-utils.libsonnet index e66bd87d699..a67b31ed527 100644 --- a/operations/tempo-mixin/dashboard-utils.libsonnet +++ b/operations/tempo-mixin/dashboard-utils.libsonnet @@ -25,7 +25,7 @@ grafana { }; d.addMultiTemplate('cluster', 'tempo_build_info', 'cluster') - .addMultiTemplate('namespace', 'tempo_build_info', 'namespace'), + .addMultiTemplate('namespace', 'tempo_build_info', 'namespace', allValue=null), }, jobMatcher(job):: @@ -137,4 +137,4 @@ grafana { $.queryPanel('sum by(instance) (go_memstats_heap_inuse_bytes{%s})' % job, '{{instance}}') + { yaxes: $.yaxes('bytes') }, -} \ No newline at end of file +} diff --git a/operations/tempo-mixin/jsonnetfile.lock.json b/operations/tempo-mixin/jsonnetfile.lock.json index 55bdaa458e6..ac9ea626d82 100644 --- a/operations/tempo-mixin/jsonnetfile.lock.json +++ b/operations/tempo-mixin/jsonnetfile.lock.json @@ -8,8 +8,8 @@ "subdir": "grafana-builder" } }, - "version": "c4975f7c4a7ab4c21020c4afbf247aa49142174d", - "sum": "y8uA/daOROErelzoo2p1rtqABhUPArg2alsfcb0PQBk=" + "version": "84900d9dc450116ad66864f48088f92ccae36c54", + "sum": "0KkygBQd/AFzUvVzezE4qF/uDYgrwUXVpZfINBti0oc=" }, { "source": { @@ -18,7 +18,7 @@ "subdir": "mixin-utils" } }, - "version": "c4975f7c4a7ab4c21020c4afbf247aa49142174d", + "version": "84900d9dc450116ad66864f48088f92ccae36c54", "sum": "v6fuqqQp9rHZbsxN9o79QzOpUlwYZEJ84DxTCZMCYeU=" } ], diff --git a/operations/tempo-mixin/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet b/operations/tempo-mixin/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet index cae0f19f957..c98e2b36061 100644 --- a/operations/tempo-mixin/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet +++ b/operations/tempo-mixin/vendor/github.com/grafana/jsonnet-libs/grafana-builder/grafana.libsonnet @@ -13,10 +13,10 @@ rows+: [row { panels: panels }], }, - addTemplate(name, metric_name, label_name, hide=0):: self { + addTemplate(name, metric_name, label_name, hide=0, allValue=null):: self { templating+: { list+: [{ - allValue: null, + allValue: allValue, current: { text: 'prod', value: 'prod', @@ -41,10 +41,10 @@ }, }, - addMultiTemplate(name, metric_name, label_name, hide=0):: self { + addMultiTemplate(name, metric_name, label_name, hide=0, allValue='.+'):: self { templating+: { list+: [{ - allValue: '.+', + allValue: allValue, current: { selected: true, text: 'All', diff --git a/operations/tempo-mixin/yamls/tempo-reads.json b/operations/tempo-mixin/yamls/tempo-reads.json index 04feb658258..07f02956dd4 100644 --- a/operations/tempo-mixin/yamls/tempo-reads.json +++ b/operations/tempo-mixin/yamls/tempo-reads.json @@ -1623,7 +1623,7 @@ "useTags": false }, { - "allValue": ".+", + "allValue": null, "current": { "selected": true, "text": "All", diff --git a/operations/tempo-mixin/yamls/tempo-resources.json b/operations/tempo-mixin/yamls/tempo-resources.json index cc1b1784cca..bda621fed27 100644 --- a/operations/tempo-mixin/yamls/tempo-resources.json +++ b/operations/tempo-mixin/yamls/tempo-resources.json @@ -1871,7 +1871,7 @@ "useTags": false }, { - "allValue": ".+", + "allValue": null, "current": { "selected": true, "text": "All", diff --git a/operations/tempo-mixin/yamls/tempo-writes.json b/operations/tempo-mixin/yamls/tempo-writes.json index 6f81d47767d..f5803c8265f 100644 --- a/operations/tempo-mixin/yamls/tempo-writes.json +++ b/operations/tempo-mixin/yamls/tempo-writes.json @@ -1673,7 +1673,7 @@ "useTags": false }, { - "allValue": ".+", + "allValue": null, "current": { "selected": true, "text": "All",