Skip to content

Commit

Permalink
Replaces datasource UID with $datasource (#914)
Browse files Browse the repository at this point in the history
Somehow various panels got a statically defined datasource UID, which is
only valid in sandbox. The correct UID should be "$datasource", allowing
users to effectively switch datasources from a select box. I'm not sure
when error was introduced, but this commit should correct it.
  • Loading branch information
nkinkade authored May 23, 2022
1 parent 5752074 commit 9245f79
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions config/federation/grafana/dashboards/K8s_SiteOverview.json
Original file line number Diff line number Diff line change
Expand Up @@ -966,8 +966,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "WW1Jk2sGk"
"uid": "$datasource"
},
"exemplar": false,
"expr": "avg(node_hwmon_temp_celsius{node=~\"$node.$site.*\", chip=\"platform_coretemp_0\"})",
Expand Down Expand Up @@ -1244,8 +1243,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "WW1Jk2sGk"
"uid": "$datasource"
},
"exemplar": true,
"expr": "8 * rate(node_network_transmit_bytes_total{device=~\"(eth0|ens4)\", node=~\"$node-$site.*\"}[4m])",
Expand All @@ -1257,8 +1255,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "WW1Jk2sGk"
"uid": "$datasource"
},
"exemplar": true,
"expr": "- 8 * rate(node_network_receive_bytes_total{device=~\"(eth0|ens4)\", node=~\"$node-$site.*\"}[4m])",
Expand Down

0 comments on commit 9245f79

Please sign in to comment.