{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__requires": [ { "type": "panel", "id": "gauge", "name": "Gauge", "version": "" }, { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "8.2.4" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" }, { "type": "panel", "id": "stat", "name": "Stat", "version": "" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "gnetId": null, "graphTooltip": 0, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "light-yellow", "value": 1000 }, { "color": "#EF843C", "value": 1200 }, { "color": "red", "value": 1500 }, { "color": "#d80283", "value": 2000 } ] }, "unit": "ppm" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 0 }, "id": 5, "options": { "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true, "text": {} }, "pluginVersion": "8.2.4", "targets": [ { "exemplar": true, "expr": "rco2{job=\"airgradient-livingroom\"}", "interval": "", "legendFormat": "", "queryType": "randomWalk", "refId": "A" } ], "title": "CO2 (Latest)", "type": "gauge" }, { "datasource": "${DS_PROMETHEUS}", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "#6ED0E0", "value": 0 }, { "color": "green", "value": 28 }, { "color": "#EAB839", "value": 40 }, { "color": "red", "value": 50 } ] }, "unit": "celsius" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 8, "y": 0 }, "id": 7, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "8.2.4", "targets": [ { "exemplar": true, "expr": "atmp{job=\"airgradient-livingroom\"}", "hide": false, "interval": "", "legendFormat": "", "queryType": "randomWalk", "refId": "A" } ], "title": "Temperature", "type": "stat" }, { "datasource": "${DS_PROMETHEUS}", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "max": 100, "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "dark-orange", "value": 25 }, { "color": "dark-green", "value": 30 }, { "color": "dark-orange", "value": 60 }, { "color": "red", "value": 70 } ] }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 0 }, "id": 8, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "text": {}, "textMode": "auto" }, "pluginVersion": "8.2.4", "targets": [ { "exemplar": true, "expr": "rhum{job=\"airgradient-livingroom\"}", "interval": "", "legendFormat": "", "queryType": "randomWalk", "refId": "A" } ], "title": "Relative Humidity", "type": "stat" }, { "datasource": "${DS_PROMETHEUS}", "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds", "seriesBy": "last" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 34, "gradientMode": "scheme", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "smooth", "lineStyle": { "fill": "solid" }, "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "light-yellow", "value": 1000 }, { "color": "semi-dark-orange", "value": 1200 }, { "color": "dark-red", "value": 1500 }, { "color": "#d80283", "value": 2000 } ] }, "unit": "ppm" }, "overrides": [] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 6 }, "id": 2, "maxDataPoints": null, "options": { "legend": { "calcs": [], "displayMode": "hidden", "placement": "bottom" }, "tooltip": { "mode": "single" } }, "pluginVersion": "8.2.4", "targets": [ { "exemplar": true, "expr": "rco2{job=\"airgradient-livingroom\"}", "interval": "", "legendFormat": "CO2", "queryType": "randomWalk", "refId": "A" } ], "timeFrom": null, "timeShift": null, "title": "CO2 Over Time", "transparent": true, "type": "timeseries" }, { "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 61, "gradientMode": "scheme", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "smooth", "lineWidth": 2, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "dark-blue", "value": null }, { "color": "light-blue", "value": 15 }, { "color": "green", "value": 18 }, { "color": "orange", "value": 23 }, { "color": "dark-orange", "value": 25 }, { "color": "red", "value": 27 } ] }, "unit": "celsius" }, "overrides": [ { "matcher": { "id": "byName", "options": "Humidity" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "thresholds", "value": { "mode": "absolute", "steps": [ { "color": "dark-blue", "value": null } ] } }, { "id": "custom.fillOpacity", "value": 8 } ] } ] }, "gridPos": { "h": 10, "w": 24, "x": 0, "y": 16 }, "id": 13, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single" } }, "targets": [ { "exemplar": true, "expr": "atmp{job=\"airgradient-livingroom\"}", "interval": "", "legendFormat": "Temperature", "refId": "A" }, { "exemplar": true, "expr": "rhum{job=\"airgradient-livingroom\"}", "hide": false, "interval": "", "legendFormat": "Humidity", "refId": "B" } ], "title": "Temperature/Humidity", "type": "timeseries" } ], "refresh": "30s", "schemaVersion": 32, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { "from": "now-12h", "to": "now" }, "timepicker": {}, "timezone": "", "title": "Open CO2 Sensor", "uid": "openco2", "version": 8 }