{ "__inputs": [ { "name": "DS_BEEGFS_MON_INFLUXDB", "label": "beegfs_mon_influxdb", "description": "", "type": "datasource", "pluginId": "influxdb", "pluginName": "InfluxDB" } ], "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "9.3.0" }, { "type": "datasource", "id": "influxdb", "name": "InfluxDB", "version": "1.0.0" }, { "type": "panel", "id": "timeseries", "name": "Time series", "version": "" } ], "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- 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, "graphTooltip": 2, "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "influxdb", "uid": "${DS_BEEGFS_MON_INFLUXDB}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "axisSoftMin": 0, "barAlignment": 0, "drawStyle": "line", "fillOpacity": 30, "gradientMode": "hue", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "bytes" }, "overrides": [ { "matcher": { "id": "byName", "options": "storageTargets.Total" }, "properties": [ { "id": "color", "value": { "fixedColor": "semi-dark-purple", "mode": "fixed" } }, { "id": "unit", "value": "bytes" }, { "id": "displayName", "value": "Disk Total" } ] }, { "matcher": { "id": "byName", "options": "Used" }, "properties": [ { "id": "color", "value": { "fixedColor": "semi-dark-blue", "mode": "fixed" } }, { "id": "unit", "value": "bytes" }, { "id": "displayName", "value": "Disk Used" } ] }, { "matcher": { "id": "byName", "options": "storageTargets.Free" }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": true } } ] } ] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 0 }, "id": 1, "links": [], "maxPerRow": 2, "options": { "legend": { "calcs": [ "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "pluginVersion": "9.3.2", "repeat": "storageTargetID", "repeatDirection": "v", "targets": [ { "datasource": { "type": "influxdb", "uid": "${DS_BEEGFS_MON_INFLUXDB}" }, "dsType": "influxdb", "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "none" ], "type": "fill" } ], "measurement": "storageTargets", "orderByTime": "ASC", "policy": "default", "query": "SELECT max(\"diskSpaceTotal\"), last(\"diskSpaceFree\"), difference(\"diskSpaceTotal\"), difference(\"diskSpaceTotal\") FROM \"storageTargets\" WHERE (\"storageTargetID\" =~ /^$storageTargetID$/) AND $timeFilter GROUP BY time($__interval) fill(none)", "rawQuery": false, "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "diskSpaceTotal" ], "type": "field" }, { "params": [], "type": "max" }, { "params": [ "Total" ], "type": "alias" } ], [ { "params": [ "diskSpaceFree" ], "type": "field" }, { "params": [], "type": "last" }, { "params": [ "Free" ], "type": "alias" } ] ], "tags": [ { "key": "storageTargetID", "operator": "=~", "value": "/^$storageTargetID$/" } ] } ], "title": "Disk Space ($storageTargetID)", "transformations": [ { "id": "joinByField", "options": {} }, { "id": "calculateField", "options": { "alias": "Used", "binary": { "left": "storageTargets.Total", "operator": "-", "reducer": "sum", "right": "storageTargets.Free" }, "mode": "binary", "reduce": { "reducer": "sum" } } } ], "type": "timeseries" }, { "datasource": { "type": "influxdb", "uid": "${DS_BEEGFS_MON_INFLUXDB}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 30, "gradientMode": "hue", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "never", "spanNulls": true, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "decimals": 0, "mappings": [], "min": 0, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 80 } ] }, "unit": "short" }, "overrides": [ { "matcher": { "id": "byName", "options": "storageTargets.Inodes Total" }, "properties": [ { "id": "color", "value": { "fixedColor": "#73ffe4", "mode": "fixed" } }, { "id": "displayName", "value": "Inodes Total" } ] }, { "matcher": { "id": "byName", "options": "Inodes Used" }, "properties": [ { "id": "color", "value": { "fixedColor": "semi-dark-yellow", "mode": "fixed" } } ] }, { "matcher": { "id": "byName", "options": "storageTargets.Inodes Free" }, "properties": [ { "id": "custom.hideFrom", "value": { "legend": true, "tooltip": true, "viz": true } } ] } ] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 0 }, "id": 5, "maxPerRow": 2, "options": { "legend": { "calcs": [ "max", "lastNotNull" ], "displayMode": "table", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "single", "sort": "none" } }, "repeat": "storageTargetID", "repeatDirection": "v", "targets": [ { "datasource": { "type": "influxdb", "uid": "${DS_BEEGFS_MON_INFLUXDB}" }, "groupBy": [ { "params": [ "$__interval" ], "type": "time" }, { "params": [ "null" ], "type": "fill" } ], "measurement": "storageTargets", "orderByTime": "ASC", "policy": "default", "refId": "A", "resultFormat": "time_series", "select": [ [ { "params": [ "inodesTotal" ], "type": "field" }, { "params": [], "type": "max" }, { "params": [ "Inodes Total" ], "type": "alias" } ], [ { "params": [ "inodesFree" ], "type": "field" }, { "params": [], "type": "last" }, { "params": [ "Inodes Free" ], "type": "alias" } ] ], "tags": [ { "key": "storageTargetID", "operator": "=~", "value": "/^$storageTargetID$/" } ] } ], "title": "Inodes ($storageTargetID)", "transformations": [ { "id": "joinByField", "options": {} }, { "id": "calculateField", "options": { "alias": "Inodes Used", "binary": { "left": "storageTargets.Inodes Total", "operator": "-", "reducer": "sum", "right": "storageTargets.Inodes Free" }, "mode": "binary", "reduce": { "reducer": "sum" } } } ], "type": "timeseries" } ], "refresh": "", "schemaVersion": 37, "style": "dark", "tags": [], "templating": { "list": [ { "current": {}, "datasource": { "type": "influxdb", "uid": "${DS_BEEGFS_MON_INFLUXDB}" }, "definition": "show tag values from storage with key IN ( \"nodeNumID\") ", "hide": 0, "includeAll": false, "label": "Storage ID", "multi": false, "name": "storageID", "options": [], "query": "show tag values from storage with key IN ( \"nodeNumID\") ", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "current": {}, "datasource": { "type": "influxdb", "uid": "${DS_BEEGFS_MON_INFLUXDB}" }, "definition": "show tag values from storageTargets with key = \"storageTargetID\" where nodeNumID =~ /^$storageID$/", "hide": 0, "includeAll": true, "label": "Storage TargetID", "multi": true, "name": "storageTargetID", "options": [], "query": "show tag values from storageTargets with key = \"storageTargetID\" where nodeNumID =~ /^$storageID$/", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-30m", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "", "title": "BeeGFS Storage Targets", "uid": "NyuGiE04k", "version": 2, "weekStart": "" }