From 12635de567df412775021f966d484a1833c62dd4 Mon Sep 17 00:00:00 2001 From: dnutiu Date: Thu, 8 Feb 2024 23:07:20 +0200 Subject: [PATCH] update grafana dashboard --- ...122324932.json => Home-1707426419959.json} | 401 ++++++++++++++++-- 1 file changed, 376 insertions(+), 25 deletions(-) rename grafana/dashboards/{Home-1655122324932.json => Home-1707426419959.json} (50%) diff --git a/grafana/dashboards/Home-1655122324932.json b/grafana/dashboards/Home-1707426419959.json similarity index 50% rename from grafana/dashboards/Home-1655122324932.json rename to grafana/dashboards/Home-1707426419959.json index 65dd2a0..e060e27 100644 --- a/grafana/dashboards/Home-1655122324932.json +++ b/grafana/dashboards/Home-1707426419959.json @@ -2,20 +2,20 @@ "__inputs": [ { "name": "DS_PROMETHEUS", - "label": "Prometheus", + "label": "prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], - "__elements": [], + "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "8.5.5" + "version": "10.3.1" }, { "type": "datasource", @@ -65,6 +65,324 @@ "links": [], "liveNow": true, "panels": [ + { + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 14, + "title": "Air Quality", + "type": "row" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ug/m3", + "unitScale": false + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 7, + "x": 0, + "y": 1 + }, + "id": 11, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "pms5003_pm_ug_per_m3_1{instance=\"localhost:8000\"}", + "instant": false, + "legendFormat": "Measurement", + "range": true, + "refId": "A" + } + ], + "title": "PM1.0 ug/m3 (ultrafine particles)", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ug/m3", + "unitScale": false + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 8, + "x": 7, + "y": 1 + }, + "id": 12, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "pms5003_pm_ug_per_m3_2{instance=\"localhost:8000\"}", + "instant": false, + "legendFormat": "Measurement", + "range": true, + "refId": "A" + } + ], + "title": "PM2.5 ug/m3 (combustion particles, organic compounds, metals).", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "description": "", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ug/m3", + "unitScale": false + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 9, + "x": 15, + "y": 1 + }, + "id": 13, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "${DS_PROMETHEUS}" + }, + "editorMode": "code", + "expr": "pms5003_pm_ug_per_m3_10{instance=\"localhost:8000\"}", + "instant": false, + "legendFormat": "Measurement", + "range": true, + "refId": "A" + } + ], + "title": "PM10 ug/m3 (dust, pollen, mould spores)", + "type": "timeseries" + }, + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 9 + }, + "id": 10, + "panels": [], + "title": "Climate Sensor", + "type": "row" + }, { "datasource": { "type": "prometheus", @@ -85,7 +403,8 @@ } ] }, - "unit": "celsius" + "unit": "celsius", + "unitScale": true }, "overrides": [] }, @@ -93,7 +412,7 @@ "h": 4, "w": 12, "x": 0, - "y": 0 + "y": 10 }, "id": 8, "options": { @@ -108,9 +427,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "8.5.5", + "pluginVersion": "10.3.1", "targets": [ { "datasource": { @@ -144,7 +465,8 @@ } ] }, - "unit": "humidity" + "unit": "humidity", + "unitScale": true }, "overrides": [] }, @@ -152,7 +474,7 @@ "h": 4, "w": 12, "x": 12, - "y": 0 + "y": 10 }, "id": 9, "options": { @@ -167,9 +489,11 @@ "fields": "", "values": false }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "8.5.5", + "pluginVersion": "10.3.1", "targets": [ { "datasource": { @@ -194,6 +518,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -205,6 +532,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -235,7 +563,8 @@ } ] }, - "unit": "celsius" + "unit": "celsius", + "unitScale": true }, "overrides": [] }, @@ -243,14 +572,15 @@ "h": 10, "w": 12, "x": 0, - "y": 4 + "y": 14 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -263,7 +593,10 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, + "editorMode": "code", "expr": "bme680_temperature_celsius{}", + "legendFormat": "Temperature", + "range": true, "refId": "A" } ], @@ -281,6 +614,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -292,6 +628,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -322,7 +659,8 @@ } ] }, - "unit": "humidity" + "unit": "humidity", + "unitScale": true }, "overrides": [] }, @@ -330,14 +668,15 @@ "h": 10, "w": 12, "x": 12, - "y": 4 + "y": 14 }, "id": 4, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -350,7 +689,10 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, + "editorMode": "code", "expr": "bme680_humidity_rh{}", + "legendFormat": "Relative Humidity", + "range": true, "refId": "A" } ], @@ -368,6 +710,9 @@ "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -379,6 +724,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, @@ -409,22 +755,24 @@ } ] }, - "unit": "pressurehpa" + "unit": "pressurehpa", + "unitScale": true }, "overrides": [] }, "gridPos": { - "h": 11, + "h": 10, "w": 24, "x": 0, - "y": 14 + "y": 24 }, "id": 6, "options": { "legend": { "calcs": [], "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { "mode": "single", @@ -437,7 +785,10 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, + "editorMode": "code", "expr": "bme680_pressure_hpa{}", + "legendFormat": "Pressure", + "range": true, "refId": "A" } ], @@ -445,20 +796,20 @@ "type": "timeseries" } ], - "schemaVersion": 36, - "style": "dark", + "refresh": false, + "schemaVersion": 39, "tags": [], "templating": { "list": [] }, "time": { - "from": "now-30m", + "from": "now-5m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Home", "uid": "snBE4Jj7z", - "version": 5, + "version": 4, "weekStart": "" } \ No newline at end of file