From d9a3d224a7b87fae296c8432ab64c2d78565e13b Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 28 Jun 2025 17:38:41 -0500 Subject: [PATCH] add panels --- dashboards/iot/airgradient.json | 126 ++++++++++++++++---------------- 1 file changed, 61 insertions(+), 65 deletions(-) diff --git a/dashboards/iot/airgradient.json b/dashboards/iot/airgradient.json index 13120e4..94ca2cf 100644 --- a/dashboards/iot/airgradient.json +++ b/dashboards/iot/airgradient.json @@ -18,6 +18,19 @@ "editable": false, "graphTooltip": 0, "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 6, + "panels": [], + "title": "", + "type": "row" + }, { "datasource": { "type": "prometheus", @@ -32,15 +45,14 @@ "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", - "axisGridShow": false, "axisLabel": "", "axisPlacement": "auto", - "axisSoftMax": 35, - "axisSoftMin": 10, + "axisSoftMax": 30, + "axisSoftMin": 20, "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", - "fillOpacity": 0, + "fillOpacity": 10, "gradientMode": "opacity", "hideFrom": { "legend": false, @@ -49,7 +61,7 @@ }, "insertNulls": false, "lineInterpolation": "smooth", - "lineWidth": 4, + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" @@ -61,7 +73,7 @@ "mode": "none" }, "thresholdsStyle": { - "mode": "area" + "mode": "off" } }, "mappings": [], @@ -91,7 +103,7 @@ "h": 8, "w": 9, "x": 0, - "y": 0 + "y": 1 }, "id": 2, "options": { @@ -117,7 +129,7 @@ "editorMode": "code", "expr": "avg_over_time(atmp{id=\"$id\"}[$__interval])", "instant": false, - "legendFormat": "{{id}}", + "legendFormat": "{{sensor_location}}", "range": true, "refId": "A" } @@ -162,7 +174,7 @@ "h": 8, "w": 3, "x": 9, - "y": 0 + "y": 1 }, "id": 7, "options": { @@ -206,10 +218,9 @@ "color": { "mode": "thresholds" }, - "decimals": 0, "mappings": [], - "max": 70, - "min": 20, + "max": 65, + "min": 25, "thresholds": { "mode": "absolute", "steps": [ @@ -234,7 +245,7 @@ "h": 8, "w": 3, "x": 12, - "y": 0 + "y": 1 }, "id": 8, "options": { @@ -282,16 +293,15 @@ "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", - "axisGridShow": false, "axisLabel": "", "axisPlacement": "auto", - "axisSoftMax": 70, - "axisSoftMin": 20, + "axisSoftMax": 60, + "axisSoftMin": 30, "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", + "fillOpacity": 10, + "gradientMode": "opacity", "hideFrom": { "legend": false, "tooltip": false, @@ -299,7 +309,7 @@ }, "insertNulls": false, "lineInterpolation": "smooth", - "lineWidth": 4, + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" @@ -311,10 +321,9 @@ "mode": "none" }, "thresholdsStyle": { - "mode": "area" + "mode": "off" } }, - "decimals": 0, "mappings": [], "thresholds": { "mode": "absolute", @@ -340,7 +349,7 @@ "h": 8, "w": 9, "x": 15, - "y": 0 + "y": 1 }, "id": 5, "options": { @@ -366,7 +375,7 @@ "editorMode": "code", "expr": "avg_over_time(rhum{id=\"$id\"}[$__interval])", "instant": false, - "legendFormat": "{{id}}", + "legendFormat": "{{sensor_location}}", "range": true, "refId": "A" } @@ -389,15 +398,14 @@ "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", - "axisGridShow": false, "axisLabel": "", "axisPlacement": "auto", - "axisSoftMax": 3000, - "axisSoftMin": 0, + "axisSoftMax": 2500, + "axisSoftMin": 100, "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", - "fillOpacity": 0, + "fillOpacity": 10, "gradientMode": "opacity", "hideFrom": { "legend": false, @@ -406,7 +414,7 @@ }, "insertNulls": false, "lineInterpolation": "smooth", - "lineWidth": 4, + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" @@ -418,12 +426,10 @@ "mode": "none" }, "thresholdsStyle": { - "mode": "area" + "mode": "line" } }, "mappings": [], - "max": 3000, - "min": 0, "thresholds": { "mode": "absolute", "steps": [ @@ -460,7 +466,7 @@ "h": 8, "w": 9, "x": 0, - "y": 8 + "y": 9 }, "id": 1, "options": { @@ -486,7 +492,7 @@ "editorMode": "code", "expr": "rco2{id=\"$id\"}", "instant": false, - "legendFormat": "{{id}}", + "legendFormat": "{{sensor_location}}", "range": true, "refId": "A" } @@ -506,8 +512,8 @@ "mode": "thresholds" }, "mappings": [], - "max": 3000, - "min": 0, + "max": 2500, + "min": 50, "thresholds": { "mode": "absolute", "steps": [ @@ -544,9 +550,9 @@ "h": 8, "w": 3, "x": 9, - "y": 8 + "y": 9 }, - "id": 10, + "id": 9, "options": { "minVizHeight": 75, "minVizWidth": 75, @@ -587,10 +593,11 @@ "fieldConfig": { "defaults": { "color": { - "mode": "thresholds" + "mode": "thresholds", + "seriesBy": "last" }, "mappings": [], - "max": 20, + "max": 35, "min": 0, "thresholds": { "mode": "absolute", @@ -624,9 +631,9 @@ "h": 8, "w": 3, "x": 12, - "y": 8 + "y": 9 }, - "id": 9, + "id": 10, "options": { "minVizHeight": 75, "minVizWidth": 75, @@ -647,16 +654,12 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "clamp_min(pm02{id=\"$id\"}, 0)", - "fullMetaSearch": false, - "includeNullMetadata": true, + "editorMode": "code", + "expr": "pm02{id=\"$id\"}", "instant": false, - "legendFormat": "{{id}}", + "legendFormat": "{{sensor_location}}", "range": true, - "refId": "A", - "useBackend": false + "refId": "A" } ], "title": "Particulate Matter", @@ -678,7 +681,6 @@ "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", - "axisGridShow": false, "axisLabel": "", "axisPlacement": "auto", "axisSoftMax": 20, @@ -686,7 +688,7 @@ "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", - "fillOpacity": 0, + "fillOpacity": 10, "gradientMode": "opacity", "hideFrom": { "legend": false, @@ -695,7 +697,7 @@ }, "insertNulls": false, "lineInterpolation": "smooth", - "lineWidth": 4, + "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" @@ -707,12 +709,10 @@ "mode": "none" }, "thresholdsStyle": { - "mode": "area" + "mode": "line" } }, - "decimals": 0, "mappings": [], - "max": 20, "min": 0, "thresholds": { "mode": "absolute", @@ -746,7 +746,7 @@ "h": 8, "w": 9, "x": 15, - "y": 8 + "y": 9 }, "id": 3, "options": { @@ -769,16 +769,12 @@ "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, - "disableTextWrap": false, - "editorMode": "builder", - "expr": "clamp_min(pm02{id=\"$id\"}, 0)", - "fullMetaSearch": false, - "includeNullMetadata": true, + "editorMode": "code", + "expr": "pm02{id=\"$id\"}", "instant": false, - "legendFormat": "{{id}}", + "legendFormat": "{{sensor_location}}", "range": true, - "refId": "A", - "useBackend": false + "refId": "A" } ], "title": "Particulate Matter", @@ -836,5 +832,5 @@ "timezone": "browser", "title": "Airgradient", "uid": "fdf2b7afrjsw0f", - "version": 2 + "version": 4 }