Skip to content

Commit

Permalink
Remove hardcoded datasource from dashboard.json
Browse files Browse the repository at this point in the history
Allows automatic datasource detection when importing
  • Loading branch information
feld committed May 16, 2023
1 parent cf7058d commit 6c25e5a
Showing 1 changed file with 20 additions and 40 deletions.
60 changes: 20 additions & 40 deletions grafana-dashboards/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"panels": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -90,8 +89,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "builder",
"exemplar": false,
Expand All @@ -107,8 +105,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -196,8 +193,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "builder",
"expr": "awair_score{awair_exporter_device_name=~\"$device\"}",
Expand All @@ -211,8 +207,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -292,8 +287,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "builder",
"expr": "awair_co2{awair_exporter_device_name=~\"$device\"}",
Expand All @@ -307,8 +301,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -396,8 +389,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "builder",
"expr": "awair_voc{awair_exporter_device_name=~\"$device\"}",
Expand All @@ -411,8 +403,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -500,8 +491,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "builder",
"expr": "awair_pm25{awair_exporter_device_name=~\"$device\"}",
Expand All @@ -515,8 +505,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -588,8 +577,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "code",
"expr": "(awair_temp{awair_exporter_device_name=~\"$device\"} * 9/5) + 32",
Expand All @@ -603,8 +591,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -680,8 +667,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "builder",
"expr": "awair_humidity{awair_exporter_device_name=~\"$device\"}",
Expand All @@ -695,8 +681,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -746,8 +731,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "builder",
"exemplar": false,
Expand Down Expand Up @@ -793,8 +777,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -844,8 +827,7 @@
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "builder",
"exemplar": false,
Expand All @@ -858,8 +840,7 @@
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"editorMode": "code",
"expr": "awair_exporter_info",
Expand Down Expand Up @@ -930,8 +911,7 @@
"value": "$__all"
},
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
"type": "prometheus"
},
"definition": "label_values(awair_exporter_device_name)",
"hide": 0,
Expand Down

0 comments on commit 6c25e5a

Please sign in to comment.