mirror of
https://github.com/rfmoz/grafana-dashboards.git
synced 2025-03-05 20:51:45 -08:00
Rename DS_LOCALHOST to prometheus $datasource
This is more universal approach so dashboard would work no matter how prometheus datasource is named.
This commit is contained in:
parent
7017a838cf
commit
f6d1b08a63
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
__inputs: [
|
__inputs: [
|
||||||
{
|
{
|
||||||
name: 'DS_LOCALHOST',
|
name: 'datasource',
|
||||||
label: 'localhost',
|
label: 'localhost',
|
||||||
description: '',
|
description: '',
|
||||||
type: 'datasource',
|
type: 'datasource',
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
'rgba(237, 129, 40, 0.89)',
|
'rgba(237, 129, 40, 0.89)',
|
||||||
'rgba(50, 172, 45, 0.97)',
|
'rgba(50, 172, 45, 0.97)',
|
||||||
],
|
],
|
||||||
datasource: '${DS_LOCALHOST}',
|
datasource: '${datasource}',
|
||||||
decimals: 1,
|
decimals: 1,
|
||||||
format: 's',
|
format: 's',
|
||||||
gauge: {
|
gauge: {
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
bars: false,
|
bars: false,
|
||||||
dashLength: 10,
|
dashLength: 10,
|
||||||
dashes: false,
|
dashes: false,
|
||||||
datasource: '${DS_LOCALHOST}',
|
datasource: '${datasource}',
|
||||||
decimals: 0,
|
decimals: 0,
|
||||||
fill: 7,
|
fill: 7,
|
||||||
id: 5,
|
id: 5,
|
||||||
|
@ -243,7 +243,7 @@
|
||||||
bars: false,
|
bars: false,
|
||||||
dashLength: 10,
|
dashLength: 10,
|
||||||
dashes: false,
|
dashes: false,
|
||||||
datasource: '${DS_LOCALHOST}',
|
datasource: '${datasource}',
|
||||||
decimals: 2,
|
decimals: 2,
|
||||||
fill: 1,
|
fill: 1,
|
||||||
id: 3,
|
id: 3,
|
||||||
|
@ -321,7 +321,7 @@
|
||||||
bars: false,
|
bars: false,
|
||||||
dashLength: 10,
|
dashLength: 10,
|
||||||
dashes: false,
|
dashes: false,
|
||||||
datasource: '${DS_LOCALHOST}',
|
datasource: '${datasource}',
|
||||||
decimals: 2,
|
decimals: 2,
|
||||||
fill: 1,
|
fill: 1,
|
||||||
id: 1,
|
id: 1,
|
||||||
|
@ -411,7 +411,7 @@
|
||||||
bars: false,
|
bars: false,
|
||||||
dashLength: 10,
|
dashLength: 10,
|
||||||
dashes: false,
|
dashes: false,
|
||||||
datasource: '${DS_LOCALHOST}',
|
datasource: '${datasource}',
|
||||||
decimals: 2,
|
decimals: 2,
|
||||||
fill: 1,
|
fill: 1,
|
||||||
id: 2,
|
id: 2,
|
||||||
|
@ -502,7 +502,7 @@
|
||||||
bars: false,
|
bars: false,
|
||||||
dashLength: 10,
|
dashLength: 10,
|
||||||
dashes: false,
|
dashes: false,
|
||||||
datasource: '${DS_LOCALHOST}',
|
datasource: '${datasource}',
|
||||||
decimals: 2,
|
decimals: 2,
|
||||||
fill: 1,
|
fill: 1,
|
||||||
id: 7,
|
id: 7,
|
||||||
|
@ -580,7 +580,7 @@
|
||||||
bars: false,
|
bars: false,
|
||||||
dashLength: 10,
|
dashLength: 10,
|
||||||
dashes: false,
|
dashes: false,
|
||||||
datasource: '${DS_LOCALHOST}',
|
datasource: '${datasource}',
|
||||||
decimals: 2,
|
decimals: 2,
|
||||||
fill: 1,
|
fill: 1,
|
||||||
id: 4,
|
id: 4,
|
||||||
|
@ -667,10 +667,26 @@
|
||||||
tags: [],
|
tags: [],
|
||||||
templating: {
|
templating: {
|
||||||
list: [
|
list: [
|
||||||
|
{
|
||||||
|
current: {},
|
||||||
|
description: null,
|
||||||
|
'error': null,
|
||||||
|
hide: 0,
|
||||||
|
includeAll: false,
|
||||||
|
label: 'Data Source',
|
||||||
|
multi: false,
|
||||||
|
name: 'datasource',
|
||||||
|
options: [],
|
||||||
|
query: 'prometheus',
|
||||||
|
refresh: 1,
|
||||||
|
regex: '',
|
||||||
|
skipUrlSync: false,
|
||||||
|
type: 'datasource',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
allValue: null,
|
allValue: null,
|
||||||
current: {},
|
current: {},
|
||||||
datasource: '${DS_LOCALHOST}',
|
datasource: '${datasource}',
|
||||||
hide: 0,
|
hide: 0,
|
||||||
includeAll: false,
|
includeAll: false,
|
||||||
label: 'host',
|
label: 'host',
|
||||||
|
@ -690,7 +706,7 @@
|
||||||
{
|
{
|
||||||
allValue: null,
|
allValue: null,
|
||||||
current: {},
|
current: {},
|
||||||
datasource: '${DS_LOCALHOST}',
|
datasource: '${datasource}',
|
||||||
hide: 2,
|
hide: 2,
|
||||||
includeAll: false,
|
includeAll: false,
|
||||||
label: null,
|
label: null,
|
||||||
|
|
Loading…
Reference in a new issue