add panels

This commit is contained in:
2025-06-28 17:38:41 -05:00
parent d5ebda413b
commit d9a3d224a7

View File

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