From 67874de37a6d2ed8f4792ffff19c2a46db8a676a Mon Sep 17 00:00:00 2001 From: YuruC3 Date: Sat, 5 Jul 2025 21:55:21 +0200 Subject: [PATCH] Simple Grafana dashboard --- dashboard.json | 232 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 dashboard.json diff --git a/dashboard.json b/dashboard.json new file mode 100644 index 0000000..8d83e0d --- /dev/null +++ b/dashboard.json @@ -0,0 +1,232 @@ +{ + "annotations": { + "list": [ + { + "builtIn": 1, + "datasource": { + "type": "grafana", + "uid": "-- Grafana --" + }, + "enable": true, + "hide": true, + "iconColor": "rgba(0, 211, 255, 1)", + "name": "Annotations & Alerts", + "type": "dashboard" + } + ] + }, + "editable": true, + "fiscalYearStartMonth": 0, + "graphTooltip": 0, + "id": 38, + "links": [], + "panels": [ + { + "collapsed": false, + "gridPos": { + "h": 1, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 2, + "panels": [], + "title": "MD1200-1", + "type": "row" + }, + { + "datasource": { + "type": "influxdb", + "uid": "bdp80jf4cy328f" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "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" + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "celsius" + }, + "overrides": [ + { + "matcher": { + "id": "byName", + "options": "Average {LOCATION=\"HQ\", MACHINE=\"CHONGUS1200\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Average" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Backplane1 {LOCATION=\"HQ\", MACHINE=\"CHONGUS1200\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Backplane 1" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Backplane2 {LOCATION=\"HQ\", MACHINE=\"CHONGUS1200\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Backplane 2" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Expander0 {LOCATION=\"HQ\", MACHINE=\"CHONGUS1200\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Expander 0" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Expander1 {LOCATION=\"HQ\", MACHINE=\"CHONGUS1200\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "Expander 1" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SASIntModule0 {LOCATION=\"HQ\", MACHINE=\"CHONGUS1200\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "SAS interface module 0" + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "SASIntModule1 {LOCATION=\"HQ\", MACHINE=\"CHONGUS1200\"}" + }, + "properties": [ + { + "id": "displayName", + "value": "SAS interface module 1" + } + ] + } + ] + }, + "gridPos": { + "h": 10, + "w": 24, + "x": 0, + "y": 1 + }, + "id": 1, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.0.2", + "targets": [ + { + "datasource": { + "type": "influxdb", + "uid": "bdp80jf4cy328f" + }, + "query": "from(bucket: \"JBOD\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"] == \"MD1200-script\")\n |> filter(fn: (r) => r[\"LOCATION\"] == \"HQ\")\n |> filter(fn: (r) => r[\"MACHINE\"] == \"CHONGUS1200\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")", + "refId": "A" + } + ], + "title": "Temperatures", + "type": "timeseries" + } + ], + "preload": false, + "schemaVersion": 41, + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-3h", + "to": "now" + }, + "timepicker": {}, + "timezone": "browser", + "title": "JBODs", + "uid": "1ee6cf76-943c-45e0-8d6f-c92db9691459", + "version": 3 + } \ No newline at end of file