Skip to content

Commit

Permalink
Merge pull request #12823 from mtulio/chore/dash-var-refresh
Browse files Browse the repository at this point in the history
chore/dash-var-refresh: change default refresh to 2(time range)
  • Loading branch information
ptabor committed Apr 8, 2021
2 parents 63c25bf + aeeecc0 commit bad0b4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion contrib/mixin/mixin.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
// scrape_interval_seconds is the global scrape interval which can be
// used to dynamically adjust rate windows as a function of the interval.
scrape_interval_seconds: 30,
// Dashboard variable refresh option on Grafana (https://grafana.com/docs/grafana/latest/datasources/prometheus/).
// 0 : Never (Will never refresh the Dashboard variables values)
// 1 : On Dashboard Load (Will refresh Dashboards variables when dashboard are loaded)
// 2 : On Time Range Change (Will refresh Dashboards variables when time range will be changed)
dashboard_var_refresh: 2,
},

prometheusAlerts+:: {
Expand Down Expand Up @@ -1287,7 +1292,7 @@
name: 'cluster',
options: [],
query: 'label_values(etcd_server_has_leader, job)',
refresh: 1,
refresh: %(dashboard_var_refresh),
regex: '',
sort: 2,
tagValuesQuery: '',
Expand Down

0 comments on commit bad0b4d

Please sign in to comment.