Merge pull request #9723 from f9n/patch-1

mixin: Reorder template variables on Remote Write dashboard
This commit is contained in:
Björn Rabenstein 2021-11-18 16:00:17 +01:00 committed by GitHub
commit 21e6f3f7f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -312,9 +312,9 @@ local template = grafana.template;
)
.addTemplate(
template.new(
'instance',
'cluster',
'$datasource',
'label_values(prometheus_build_info, instance)' % $._config,
'label_values(kube_pod_container_info{image=~".*prometheus.*"}, cluster)' % $._config,
refresh='time',
current={
selected: true,
@ -326,9 +326,9 @@ local template = grafana.template;
)
.addTemplate(
template.new(
'cluster',
'instance',
'$datasource',
'label_values(kube_pod_container_info{image=~".*prometheus.*"}, cluster)' % $._config,
'label_values(prometheus_build_info{cluster=~"$cluster"}, instance)' % $._config,
refresh='time',
current={
selected: true,