Skip to content

Commit

Permalink
Replace the UID of the datasource
Browse files Browse the repository at this point in the history
Replace UID with "${DS_INFLUXDB}" so that the dashboard can be imported
into a different grafana instance.

To get this new json file, when exporting the dashboard
just check the option "Export for sharing externally".
  • Loading branch information
ireneazaceta committed Jul 24, 2024
1 parent 188b84f commit b887c2e
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions grafana/inlet-temperature.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "9.2.3"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
Expand All @@ -24,14 +55,14 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 49,
"id": null,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "REn59JNVz"
"uid": "${DS_PROMETHEUS}"
},
"description": "ipmi sensor: \"System Temp\"",
"fieldConfig": {
Expand Down Expand Up @@ -116,7 +147,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "REn59JNVz"
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"exemplar": false,
Expand Down Expand Up @@ -147,6 +178,6 @@
"timezone": "",
"title": "Inlet temperature",
"uid": "c4mUZPlIz",
"version": 7,
"version": 1,
"weekStart": ""
}

0 comments on commit b887c2e

Please sign in to comment.