Mercurial > ~darius > hgwebdir.cgi > pw2log
annotate Grafana-dashboard.json @ 5:c02b765b4eb3 default tip
Add grafana dashboard configuration.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Fri, 21 Jul 2023 19:57:53 +0930 |
parents | |
children |
rev | line source |
---|---|
5
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
1 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
2 "annotations": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
3 "list": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
4 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
5 "$$hashKey": "object:7", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
6 "builtIn": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
7 "datasource": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
8 "type": "datasource", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
9 "uid": "grafana" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
10 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
11 "enable": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
12 "hide": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
13 "iconColor": "rgba(0, 211, 255, 1)", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
14 "name": "Annotations & Alerts", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
15 "target": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
16 "limit": 100, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
17 "matchAny": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
18 "tags": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
19 "type": "dashboard" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
20 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
21 "type": "dashboard" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
22 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
23 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
24 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
25 "editable": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
26 "fiscalYearStartMonth": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
27 "graphTooltip": 2, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
28 "id": 4, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
29 "links": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
30 "liveNow": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
31 "panels": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
32 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
33 "aliasColors": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
34 "Battery": "red", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
35 "Grid": "blue", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
36 "Solar": "green", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
37 "battery_power": "red", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
38 "grid_power": "blue", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
39 "solar_power": "green" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
40 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
41 "bars": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
42 "dashLength": 10, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
43 "dashes": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
44 "datasource": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
45 "type": "postgres", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
46 "uid": "000000004" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
47 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
48 "fieldConfig": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
49 "defaults": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
50 "links": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
51 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
52 "overrides": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
53 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
54 "fill": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
55 "fillGradient": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
56 "gridPos": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
57 "h": 11, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
58 "w": 24, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
59 "x": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
60 "y": 0 |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
61 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
62 "hiddenSeries": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
63 "id": 2, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
64 "legend": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
65 "avg": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
66 "current": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
67 "max": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
68 "min": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
69 "show": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
70 "total": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
71 "values": false |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
72 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
73 "lines": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
74 "linewidth": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
75 "nullPointMode": "null", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
76 "options": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
77 "alertThreshold": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
78 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
79 "percentage": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
80 "pluginVersion": "8.5.4", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
81 "pointradius": 2, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
82 "points": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
83 "renderer": "flot", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
84 "seriesOverrides": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
85 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
86 "alias": "battery_charge", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
87 "yaxis": 2 |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
88 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
89 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
90 "alias": "Charge", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
91 "yaxis": 2 |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
92 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
93 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
94 "spaceLength": 10, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
95 "stack": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
96 "steppedLine": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
97 "targets": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
98 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
99 "format": "time_series", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
100 "group": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
101 "metricColumn": "none", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
102 "rawQuery": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
103 "rawSql": "SELECT\n $__time(date),\n grid_power AS \"Grid\",\n load_power AS \"Load\",\n battery_power AS \"Battery\",\n battery_charge AS \"Charge\",\n solar_power AS \"Solar\"\nFROM\n pw2\nWHERE\n $__timeFilter(date)\n", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
104 "refId": "A", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
105 "select": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
106 [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
107 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
108 "params": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
109 "value" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
110 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
111 "type": "column" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
112 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
113 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
114 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
115 "timeColumn": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
116 "where": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
117 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
118 "name": "$__timeFilter", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
119 "params": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
120 "type": "macro" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
121 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
122 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
123 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
124 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
125 "thresholds": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
126 "timeRegions": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
127 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
128 "$$hashKey": "object:42", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
129 "colorMode": "yellow", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
130 "fill": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
131 "fillColor": "rgba(234, 112, 112, 0.12)", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
132 "from": "15:30", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
133 "line": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
134 "lineColor": "rgba(237, 46, 24, 0.60)", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
135 "op": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
136 "to": "20:30" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
137 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
138 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
139 "$$hashKey": "object:70", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
140 "colorMode": "green", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
141 "fill": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
142 "fillColor": "rgba(234, 112, 112, 0.12)", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
143 "from": "00:30", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
144 "line": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
145 "lineColor": "rgba(237, 46, 24, 0.60)", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
146 "op": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
147 "to": "05:30" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
148 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
149 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
150 "title": "Charge / Power", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
151 "tooltip": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
152 "shared": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
153 "sort": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
154 "value_type": "individual" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
155 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
156 "type": "graph", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
157 "xaxis": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
158 "mode": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
159 "show": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
160 "values": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
161 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
162 "yaxes": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
163 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
164 "$$hashKey": "object:202", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
165 "format": "watt", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
166 "logBase": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
167 "max": "6000", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
168 "min": "-6000", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
169 "show": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
170 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
171 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
172 "$$hashKey": "object:203", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
173 "format": "percent", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
174 "logBase": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
175 "max": "100", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
176 "min": "0", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
177 "show": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
178 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
179 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
180 "yaxis": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
181 "align": false |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
182 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
183 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
184 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
185 "aliasColors": {}, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
186 "bars": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
187 "dashLength": 10, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
188 "dashes": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
189 "datasource": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
190 "type": "postgres", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
191 "uid": "000000004" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
192 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
193 "fieldConfig": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
194 "defaults": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
195 "links": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
196 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
197 "overrides": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
198 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
199 "fill": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
200 "fillGradient": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
201 "gridPos": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
202 "h": 9, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
203 "w": 24, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
204 "x": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
205 "y": 11 |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
206 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
207 "hiddenSeries": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
208 "id": 6, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
209 "legend": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
210 "alignAsTable": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
211 "avg": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
212 "current": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
213 "max": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
214 "min": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
215 "rightSide": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
216 "show": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
217 "total": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
218 "values": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
219 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
220 "lines": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
221 "linewidth": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
222 "nullPointMode": "null", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
223 "options": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
224 "alertThreshold": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
225 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
226 "percentage": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
227 "pluginVersion": "8.5.4", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
228 "pointradius": 2, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
229 "points": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
230 "renderer": "flot", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
231 "seriesOverrides": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
232 "spaceLength": 10, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
233 "stack": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
234 "steppedLine": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
235 "targets": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
236 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
237 "format": "time_series", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
238 "group": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
239 "metricColumn": "none", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
240 "rawQuery": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
241 "rawSql": "WITH foo AS (\n SELECT \n date,\n solar_power * EXTRACT(seconds FROM date - lag(date) OVER (ORDER BY date ASC)) / 3600 AS solar_wh,\n load_power * EXTRACT(seconds FROM date - lag(date) OVER (ORDER BY date ASC)) / 3600 AS load_wh,\n CASE WHEN grid_power > 0 THEN grid_power * EXTRACT(seconds FROM date - lag(date) OVER (ORDER BY date ASC)) / 3600 END AS grid_import_wh,\n CASE WHEN grid_power < 0 THEN -grid_power * EXTRACT(seconds FROM date - lag(date) OVER (ORDER BY date ASC)) / 3600 END AS grid_export_wh,\n CASE WHEN battery_power > 0 THEN battery_power * EXTRACT(seconds FROM date - lag(date) OVER (ORDER BY date ASC)) / 3600 END AS battery_discharge_wh,\n CASE WHEN battery_power < 0 THEN -battery_power * EXTRACT(seconds FROM date - lag(date) OVER (ORDER BY date ASC)) / 3600 END AS battery_charge_wh\n FROM pw2\n WHERE $__timeFilter(date)\n ORDER BY date ASC\n)\nSELECT\n date AS time,\n SUM(solar_wh) OVER (ORDER BY date ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS \"Solar Generation\",\n SUM(load_wh) OVER (ORDER BY date ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS \"Consumption\",\n SUM(grid_import_wh) OVER (ORDER BY date ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS \"Grid Import\",\n SUM(grid_export_wh) OVER (ORDER BY date ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS \"Grid Export\",\n SUM(battery_discharge_wh) OVER (ORDER BY date ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS \"Battery Discharge\",\n SUM(battery_charge_wh) OVER (ORDER BY date ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS \"Battery Charge\"\nFROM foo;", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
242 "refId": "A", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
243 "select": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
244 [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
245 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
246 "params": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
247 "value" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
248 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
249 "type": "column" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
250 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
251 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
252 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
253 "timeColumn": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
254 "where": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
255 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
256 "name": "$__timeFilter", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
257 "params": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
258 "type": "macro" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
259 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
260 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
261 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
262 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
263 "thresholds": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
264 "timeRegions": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
265 "title": "Cumulative Energy", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
266 "tooltip": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
267 "shared": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
268 "sort": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
269 "value_type": "individual" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
270 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
271 "type": "graph", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
272 "xaxis": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
273 "mode": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
274 "show": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
275 "values": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
276 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
277 "yaxes": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
278 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
279 "format": "watth", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
280 "logBase": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
281 "show": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
282 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
283 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
284 "format": "short", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
285 "logBase": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
286 "show": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
287 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
288 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
289 "yaxis": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
290 "align": false |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
291 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
292 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
293 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
294 "aliasColors": {}, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
295 "bars": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
296 "dashLength": 10, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
297 "dashes": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
298 "datasource": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
299 "type": "postgres", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
300 "uid": "000000004" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
301 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
302 "fieldConfig": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
303 "defaults": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
304 "links": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
305 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
306 "overrides": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
307 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
308 "fill": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
309 "fillGradient": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
310 "gridPos": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
311 "h": 9, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
312 "w": 24, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
313 "x": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
314 "y": 20 |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
315 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
316 "hiddenSeries": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
317 "id": 7, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
318 "legend": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
319 "alignAsTable": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
320 "avg": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
321 "current": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
322 "max": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
323 "min": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
324 "rightSide": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
325 "show": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
326 "total": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
327 "values": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
328 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
329 "lines": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
330 "linewidth": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
331 "nullPointMode": "null", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
332 "options": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
333 "alertThreshold": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
334 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
335 "percentage": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
336 "pluginVersion": "8.5.4", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
337 "pointradius": 2, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
338 "points": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
339 "renderer": "flot", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
340 "seriesOverrides": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
341 "spaceLength": 10, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
342 "stack": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
343 "steppedLine": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
344 "targets": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
345 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
346 "datasource": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
347 "type": "postgres", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
348 "uid": "000000004" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
349 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
350 "format": "time_series", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
351 "group": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
352 "metricColumn": "none", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
353 "rawQuery": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
354 "rawSql": "WITH bar AS (\n WITH foo AS (\n SELECT\n date as time,\n EXTRACT('hour' FROM DATE_TRUNC('hour', date)) AS hour,\n CASE WHEN EXTRACT('hour' FROM DATE_TRUNC('hour', date)) BETWEEN 1 AND 6 THEN 36.63\n WHEN EXTRACT('hour' FROM DATE_TRUNC('hour', date)) BETWEEN 10 AND 15 THEN 31.548\n ELSE 48.312\n END AS rate,\n 14 AS tarrif,\n CASE WHEN grid_power > 0 THEN grid_power * EXTRACT(seconds FROM date - lag(date) OVER (ORDER BY date ASC)) / 3600 ELSE 0 END AS grid_import_wh,\n CASE WHEN grid_power < 0 THEN -grid_power * EXTRACT(seconds FROM date - lag(date) OVER (ORDER BY date ASC)) / 3600 ELSE 0 END AS grid_export_wh\n FROM pw2\n WHERE $__timeFilter(date)\n ORDER BY date ASC\n )\n SELECT\n time,\n rate,\n grid_import_wh / 1000 * rate / 100 AS grid_import_dollars,\n grid_export_wh / 1000 * tarrif / 100 AS grid_export_dollars\n FROM foo\n )\nSELECT\n time,\n SUM(grid_import_dollars) OVER (ORDER BY time ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS \"Import\",\n SUM(grid_export_dollars) OVER (ORDER BY time ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS \"Export\",\n SUM(grid_import_dollars) OVER (ORDER BY time ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) -\n SUM(grid_export_dollars) OVER (ORDER BY time ASC ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS \"Net\"\n FROM bar;", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
355 "refId": "A", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
356 "select": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
357 [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
358 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
359 "params": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
360 "value" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
361 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
362 "type": "column" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
363 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
364 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
365 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
366 "timeColumn": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
367 "where": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
368 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
369 "name": "$__timeFilter", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
370 "params": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
371 "type": "macro" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
372 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
373 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
374 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
375 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
376 "thresholds": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
377 "timeRegions": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
378 "title": "Cost (excl. supply charge)", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
379 "tooltip": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
380 "shared": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
381 "sort": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
382 "value_type": "individual" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
383 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
384 "type": "graph", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
385 "xaxis": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
386 "mode": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
387 "show": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
388 "values": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
389 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
390 "yaxes": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
391 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
392 "$$hashKey": "object:61", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
393 "format": "currencyUSD", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
394 "logBase": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
395 "show": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
396 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
397 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
398 "$$hashKey": "object:62", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
399 "format": "currencyUSD", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
400 "logBase": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
401 "show": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
402 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
403 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
404 "yaxis": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
405 "align": false |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
406 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
407 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
408 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
409 "aliasColors": {}, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
410 "bars": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
411 "dashLength": 10, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
412 "dashes": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
413 "datasource": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
414 "type": "postgres", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
415 "uid": "000000004" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
416 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
417 "fieldConfig": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
418 "defaults": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
419 "links": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
420 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
421 "overrides": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
422 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
423 "fill": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
424 "fillGradient": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
425 "gridPos": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
426 "h": 8, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
427 "w": 24, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
428 "x": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
429 "y": 29 |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
430 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
431 "hiddenSeries": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
432 "id": 4, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
433 "legend": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
434 "avg": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
435 "current": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
436 "max": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
437 "min": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
438 "show": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
439 "total": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
440 "values": false |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
441 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
442 "lines": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
443 "linewidth": 2, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
444 "nullPointMode": "null", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
445 "options": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
446 "alertThreshold": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
447 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
448 "percentage": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
449 "pluginVersion": "8.5.4", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
450 "pointradius": 2, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
451 "points": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
452 "renderer": "flot", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
453 "seriesOverrides": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
454 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
455 "$$hashKey": "object:337", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
456 "alias": "Frequency", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
457 "yaxis": 2, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
458 "zindex": -1 |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
459 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
460 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
461 "spaceLength": 10, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
462 "stack": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
463 "steppedLine": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
464 "targets": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
465 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
466 "datasource": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
467 "type": "postgres", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
468 "uid": "000000004" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
469 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
470 "format": "time_series", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
471 "group": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
472 "metricColumn": "none", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
473 "rawQuery": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
474 "rawSql": "SELECT\n $__time(date),\n grid_voltage AS \"Voltage\",\n grid_freq AS \"Frequency\"\nFROM\n pw2\nWHERE\n $__timeFilter(date)\n", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
475 "refId": "A", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
476 "select": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
477 [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
478 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
479 "params": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
480 "value" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
481 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
482 "type": "column" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
483 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
484 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
485 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
486 "timeColumn": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
487 "where": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
488 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
489 "name": "$__timeFilter", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
490 "params": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
491 "type": "macro" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
492 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
493 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
494 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
495 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
496 "thresholds": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
497 "timeRegions": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
498 "title": "Grid", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
499 "tooltip": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
500 "shared": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
501 "sort": 0, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
502 "value_type": "individual" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
503 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
504 "type": "graph", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
505 "xaxis": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
506 "mode": "time", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
507 "show": true, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
508 "values": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
509 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
510 "yaxes": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
511 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
512 "$$hashKey": "object:266", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
513 "decimals": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
514 "format": "volt", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
515 "label": "", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
516 "logBase": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
517 "max": "260", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
518 "min": "230", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
519 "show": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
520 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
521 { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
522 "$$hashKey": "object:267", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
523 "decimals": 2, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
524 "format": "short", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
525 "label": "", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
526 "logBase": 1, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
527 "max": "51", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
528 "min": "49", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
529 "show": true |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
530 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
531 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
532 "yaxis": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
533 "align": false |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
534 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
535 } |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
536 ], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
537 "refresh": "", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
538 "schemaVersion": 36, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
539 "style": "dark", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
540 "tags": [], |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
541 "templating": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
542 "list": [] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
543 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
544 "time": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
545 "from": "now/d", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
546 "to": "now/d" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
547 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
548 "timepicker": { |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
549 "hidden": false, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
550 "refresh_intervals": [ |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
551 "5s", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
552 "10s", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
553 "30s", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
554 "1m", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
555 "5m", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
556 "15m", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
557 "30m", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
558 "1h", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
559 "2h", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
560 "1d" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
561 ] |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
562 }, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
563 "timezone": "", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
564 "title": "Powerwall", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
565 "uid": "IsSsdrTZz", |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
566 "version": 24, |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
567 "weekStart": "" |
c02b765b4eb3
Add grafana dashboard configuration.
Daniel O'Connor <darius@dons.net.au>
parents:
diff
changeset
|
568 } |