Skip to content

Commit 0373514

Browse files
author
Alexander Thiel
committed
grafana dashboard update
1 parent 325704f commit 0373514

File tree

1 file changed

+107
-28
lines changed

1 file changed

+107
-28
lines changed

grafana/dashboard.json

Lines changed: 107 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,47 @@
11
{
2+
"__inputs": [
3+
{
4+
"name": "DS_PROMETHEUS",
5+
"label": "Prometheus",
6+
"description": "",
7+
"type": "datasource",
8+
"pluginId": "prometheus",
9+
"pluginName": "Prometheus"
10+
}
11+
],
12+
"__elements": {},
13+
"__requires": [
14+
{
15+
"type": "grafana",
16+
"id": "grafana",
17+
"name": "Grafana",
18+
"version": "9.2.1"
19+
},
20+
{
21+
"type": "panel",
22+
"id": "graph",
23+
"name": "Graph (old)",
24+
"version": ""
25+
},
26+
{
27+
"type": "datasource",
28+
"id": "prometheus",
29+
"name": "Prometheus",
30+
"version": "1.0.0"
31+
},
32+
{
33+
"type": "panel",
34+
"id": "stat",
35+
"name": "Stat",
36+
"version": ""
37+
},
38+
{
39+
"type": "panel",
40+
"id": "table",
41+
"name": "Table",
42+
"version": ""
43+
}
44+
],
245
"annotations": {
346
"list": [
447
{
@@ -25,12 +68,15 @@
2568
"fiscalYearStartMonth": 0,
2669
"gnetId": 13645,
2770
"graphTooltip": 0,
28-
"id": 2,
71+
"id": null,
2972
"links": [],
3073
"liveNow": false,
3174
"panels": [
3275
{
33-
"datasource": {},
76+
"datasource": {
77+
"type": "prometheus",
78+
"uid": "${DS_PROMETHEUS}"
79+
},
3480
"fieldConfig": {
3581
"defaults": {
3682
"mappings": [],
@@ -77,7 +123,7 @@
77123
{
78124
"datasource": {
79125
"type": "prometheus",
80-
"uid": "woSee8Zgk"
126+
"uid": "${DS_PROMETHEUS}"
81127
},
82128
"editorMode": "code",
83129
"expr": "hue_bridge_info",
@@ -94,7 +140,7 @@
94140
{
95141
"datasource": {
96142
"type": "prometheus",
97-
"uid": "woSee8Zgk"
143+
"uid": "${DS_PROMETHEUS}"
98144
},
99145
"fieldConfig": {
100146
"defaults": {
@@ -142,7 +188,7 @@
142188
{
143189
"datasource": {
144190
"type": "prometheus",
145-
"uid": "woSee8Zgk"
191+
"uid": "${DS_PROMETHEUS}"
146192
},
147193
"expr": "hue_bridge_info",
148194
"format": "table",
@@ -156,7 +202,10 @@
156202
"type": "stat"
157203
},
158204
{
159-
"datasource": {},
205+
"datasource": {
206+
"type": "prometheus",
207+
"uid": "${DS_PROMETHEUS}"
208+
},
160209
"fieldConfig": {
161210
"defaults": {
162211
"mappings": [],
@@ -203,7 +252,7 @@
203252
{
204253
"datasource": {
205254
"type": "prometheus",
206-
"uid": "woSee8Zgk"
255+
"uid": "${DS_PROMETHEUS}"
207256
},
208257
"editorMode": "code",
209258
"expr": "hue_bridge_info",
@@ -218,7 +267,10 @@
218267
"type": "stat"
219268
},
220269
{
221-
"datasource": {},
270+
"datasource": {
271+
"type": "prometheus",
272+
"uid": "${DS_PROMETHEUS}"
273+
},
222274
"fieldConfig": {
223275
"defaults": {
224276
"mappings": [],
@@ -265,7 +317,7 @@
265317
{
266318
"datasource": {
267319
"type": "prometheus",
268-
"uid": "woSee8Zgk"
320+
"uid": "${DS_PROMETHEUS}"
269321
},
270322
"editorMode": "code",
271323
"expr": "hue_bridge_info",
@@ -280,7 +332,10 @@
280332
"type": "stat"
281333
},
282334
{
283-
"datasource": {},
335+
"datasource": {
336+
"type": "prometheus",
337+
"uid": "${DS_PROMETHEUS}"
338+
},
284339
"fieldConfig": {
285340
"defaults": {
286341
"mappings": [],
@@ -328,7 +383,7 @@
328383
{
329384
"datasource": {
330385
"type": "prometheus",
331-
"uid": "woSee8Zgk"
386+
"uid": "${DS_PROMETHEUS}"
332387
},
333388
"editorMode": "code",
334389
"expr": "hue_bridge_info",
@@ -343,7 +398,10 @@
343398
"type": "stat"
344399
},
345400
{
346-
"datasource": {},
401+
"datasource": {
402+
"type": "prometheus",
403+
"uid": "${DS_PROMETHEUS}"
404+
},
347405
"fieldConfig": {
348406
"defaults": {
349407
"mappings": [],
@@ -390,7 +448,7 @@
390448
{
391449
"datasource": {
392450
"type": "prometheus",
393-
"uid": "woSee8Zgk"
451+
"uid": "${DS_PROMETHEUS}"
394452
},
395453
"editorMode": "code",
396454
"expr": "hue_bridge_info",
@@ -405,7 +463,10 @@
405463
"type": "stat"
406464
},
407465
{
408-
"datasource": {},
466+
"datasource": {
467+
"type": "prometheus",
468+
"uid": "${DS_PROMETHEUS}"
469+
},
409470
"fieldConfig": {
410471
"defaults": {
411472
"mappings": [],
@@ -453,7 +514,7 @@
453514
{
454515
"datasource": {
455516
"type": "prometheus",
456-
"uid": "woSee8Zgk"
517+
"uid": "${DS_PROMETHEUS}"
457518
},
458519
"editorMode": "code",
459520
"expr": "hue_bridge_info",
@@ -468,7 +529,10 @@
468529
"type": "stat"
469530
},
470531
{
471-
"datasource": {},
532+
"datasource": {
533+
"type": "prometheus",
534+
"uid": "${DS_PROMETHEUS}"
535+
},
472536
"description": "",
473537
"fieldConfig": {
474538
"defaults": {
@@ -515,7 +579,7 @@
515579
{
516580
"datasource": {
517581
"type": "prometheus",
518-
"uid": "woSee8Zgk"
582+
"uid": "${DS_PROMETHEUS}"
519583
},
520584
"editorMode": "code",
521585
"expr": "sum(hue_light_state)",
@@ -532,7 +596,10 @@
532596
"type": "stat"
533597
},
534598
{
535-
"datasource": {},
599+
"datasource": {
600+
"type": "prometheus",
601+
"uid": "${DS_PROMETHEUS}"
602+
},
536603
"description": "",
537604
"fieldConfig": {
538605
"defaults": {
@@ -579,7 +646,7 @@
579646
{
580647
"datasource": {
581648
"type": "prometheus",
582-
"uid": "woSee8Zgk"
649+
"uid": "${DS_PROMETHEUS}"
583650
},
584651
"editorMode": "code",
585652
"expr": "count(hue_light_state)-sum(hue_light_state)",
@@ -604,7 +671,10 @@
604671
"bars": false,
605672
"dashLength": 10,
606673
"dashes": false,
607-
"datasource": {},
674+
"datasource": {
675+
"type": "prometheus",
676+
"uid": "${DS_PROMETHEUS}"
677+
},
608678
"decimals": 1,
609679
"fill": 0,
610680
"fillGradient": 4,
@@ -648,7 +718,7 @@
648718
{
649719
"datasource": {
650720
"type": "prometheus",
651-
"uid": "woSee8Zgk"
721+
"uid": "${DS_PROMETHEUS}"
652722
},
653723
"editorMode": "code",
654724
"expr": "10^((hue_sensor_lightlevel-1)/10000)",
@@ -702,7 +772,10 @@
702772
"bars": false,
703773
"dashLength": 10,
704774
"dashes": false,
705-
"datasource": {},
775+
"datasource": {
776+
"type": "prometheus",
777+
"uid": "${DS_PROMETHEUS}"
778+
},
706779
"decimals": 1,
707780
"fill": 0,
708781
"fillGradient": 4,
@@ -746,7 +819,7 @@
746819
{
747820
"datasource": {
748821
"type": "prometheus",
749-
"uid": "woSee8Zgk"
822+
"uid": "${DS_PROMETHEUS}"
750823
},
751824
"editorMode": "code",
752825
"expr": "hue_sensor_temperature/100",
@@ -791,7 +864,10 @@
791864
}
792865
},
793866
{
794-
"datasource": {},
867+
"datasource": {
868+
"type": "prometheus",
869+
"uid": "${DS_PROMETHEUS}"
870+
},
795871
"fieldConfig": {
796872
"defaults": {
797873
"color": {
@@ -951,7 +1027,7 @@
9511027
{
9521028
"datasource": {
9531029
"type": "prometheus",
954-
"uid": "woSee8Zgk"
1030+
"uid": "${DS_PROMETHEUS}"
9551031
},
9561032
"editorMode": "code",
9571033
"expr": "hue_sensor_info{type=~\"ZLL.*\"}",
@@ -1004,7 +1080,10 @@
10041080
"type": "table"
10051081
},
10061082
{
1007-
"datasource": {},
1083+
"datasource": {
1084+
"type": "prometheus",
1085+
"uid": "${DS_PROMETHEUS}"
1086+
},
10081087
"description": "",
10091088
"fieldConfig": {
10101089
"defaults": {
@@ -1203,7 +1282,7 @@
12031282
{
12041283
"datasource": {
12051284
"type": "prometheus",
1206-
"uid": "woSee8Zgk"
1285+
"uid": "${DS_PROMETHEUS}"
12071286
},
12081287
"editorMode": "code",
12091288
"expr": "hue_light_info",
@@ -1274,6 +1353,6 @@
12741353
"timezone": "",
12751354
"title": "Philips Hue",
12761355
"uid": "X7uYULiRk",
1277-
"version": 5,
1356+
"version": 1,
12781357
"weekStart": ""
12791358
}

0 commit comments

Comments
 (0)