Skip to content

Commit

Permalink
Remove hardcoded references to datasources in grafana dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Medath authored and tg44 committed Feb 19, 2021
1 parent 461d2f6 commit 52ee0cb
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions extras/octorpint-grafana.json → extras/octoprint-grafana.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "garrus_prometheus",
"datasource": "${DATASOURCE}",
"format": "none",
"gauge": {
"maxValue": 100,
Expand Down Expand Up @@ -110,7 +110,7 @@
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "garrus_prometheus",
"datasource": "${DATASOURCE}",
"format": "none",
"gauge": {
"maxValue": 100,
Expand Down Expand Up @@ -195,7 +195,7 @@
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "garrus_prometheus",
"datasource": "${DATASOURCE}",
"format": "none",
"gauge": {
"maxValue": 100,
Expand Down Expand Up @@ -274,7 +274,7 @@
},
{
"cacheTimeout": null,
"datasource": null,
"datasource": "${DATASOURCE}",
"gridPos": {
"h": 6,
"w": 4,
Expand Down Expand Up @@ -361,7 +361,7 @@
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DATASOURCE}",
"fill": 1,
"fillGradient": 0,
"gridPos": {
Expand Down Expand Up @@ -454,7 +454,7 @@
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"datasource": "${DATASOURCE}",
"decimals": null,
"fill": 1,
"fillGradient": 0,
Expand Down Expand Up @@ -551,7 +551,24 @@
"style": "dark",
"tags": [],
"templating": {
"list": []
"list": [
{
"description": null,
"error": null,
"hide": 0,
"includeAll": false,
"label": null,
"multi": false,
"name": "DATASOURCE",
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
}
]
},
"time": {
"from": "now-6h",
Expand All @@ -577,5 +594,5 @@
"variables": {
"list": []
},
"version": 7
"version": 8
}

0 comments on commit 52ee0cb

Please sign in to comment.