mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 13:57:36 -08:00
mixin: Reorder template variables on Remote Write dashboard
Signed-off-by: f9n <f9n@protonmail.com>
This commit is contained in:
parent
72a9f7fee9
commit
bc89e9e494
|
@ -312,9 +312,9 @@ local template = grafana.template;
|
||||||
)
|
)
|
||||||
.addTemplate(
|
.addTemplate(
|
||||||
template.new(
|
template.new(
|
||||||
'instance',
|
'cluster',
|
||||||
'$datasource',
|
'$datasource',
|
||||||
'label_values(prometheus_build_info, instance)' % $._config,
|
'label_values(kube_pod_container_info{image=~".*prometheus.*"}, cluster)' % $._config,
|
||||||
refresh='time',
|
refresh='time',
|
||||||
current={
|
current={
|
||||||
selected: true,
|
selected: true,
|
||||||
|
@ -326,9 +326,9 @@ local template = grafana.template;
|
||||||
)
|
)
|
||||||
.addTemplate(
|
.addTemplate(
|
||||||
template.new(
|
template.new(
|
||||||
'cluster',
|
'instance',
|
||||||
'$datasource',
|
'$datasource',
|
||||||
'label_values(kube_pod_container_info{image=~".*prometheus.*"}, cluster)' % $._config,
|
'label_values(prometheus_build_info{cluster=~"$cluster"}, instance)' % $._config,
|
||||||
refresh='time',
|
refresh='time',
|
||||||
current={
|
current={
|
||||||
selected: true,
|
selected: true,
|
||||||
|
|
Loading…
Reference in a new issue