From 6583109c73f1de8fc3b1c8ddc6bd615e20a86b22 Mon Sep 17 00:00:00 2001 From: Nicolas Hennion Date: Thu, 16 May 2024 14:14:16 +0000 Subject: Update the Grafana dashboard - Sensors is now displayed #2780 --- conf/glances-grafana-influxql.json | 159 +++++++++++++++++++++++++++++++++++-- 1 file changed, 154 insertions(+), 5 deletions(-) (limited to 'conf') diff --git a/conf/glances-grafana-influxql.json b/conf/glances-grafana-influxql.json index a10c64b1..36b56d5e 100644 --- a/conf/glances-grafana-influxql.json +++ b/conf/glances-grafana-influxql.json @@ -2120,13 +2120,14 @@ "value": 80 } ] - } + }, + "unit": "celsius" }, "overrides": [] }, "gridPos": { "h": 6, - "w": 24, + "w": 12, "x": 0, "y": 30 }, @@ -2202,12 +2203,160 @@ "condition": "AND", "key": "type", "operator": "=~", - "value": "/^temperature_core$/" + "value": "/^SensorType.CPU_TEMP$/" + } + ] + } + ], + "title": "CPU temperature", + "type": "timeseries" + }, + { + "datasource": { + "type": "influxdb", + "uid": "${DS_GLANCES}" + }, + "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" + } + }, + "fieldMinMax": false, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "rotrpm" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 30 + }, + "id": 32, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "10.4.1", + "targets": [ + { + "alias": "$tag_label", + "datasource": { + "type": "influxdb", + "uid": "${DS_GLANCES}" + }, + "dsType": "influxdb", + "groupBy": [ + { + "params": [ + "$__interval" + ], + "type": "time" + }, + { + "params": [ + "label::tag" + ], + "type": "tag" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "sensors", + "orderByTime": "ASC", + "policy": "default", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [ + { + "condition": "AND", + "key": "hostname", + "operator": "=~", + "value": "/^$host$/" + }, + { + "condition": "AND", + "key": "type", + "operator": "=~", + "value": "/^SensorType.FAN_SPEED$/" } ] } ], - "title": "Temperatures", + "title": "FAN speed", "type": "timeseries" }, { @@ -2667,6 +2816,6 @@ "timezone": "browser", "title": "Glances", "uid": "000000002", - "version": 3, + "version": 5, "weekStart": "" } \ No newline at end of file -- cgit v1.2.3