diff --git a/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json b/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json index 99292e918686bceb489d7df38536b06afec4b95d..3fe9d0a805448b075da3e9ba502d3a5c81e299cf 100644 --- a/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json +++ b/nixos/modules/monitoring/server/grafana-dashboards/resources-overview.json @@ -108,7 +108,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "multi" + "mode": "multi", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -190,7 +191,7 @@ "mode": "none" }, "thresholdsStyle": { - "mode": "line+area" + "mode": "area" } }, "displayName": "${__field.labels.instance}", @@ -240,7 +241,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "multi" + "mode": "multi", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -323,7 +325,7 @@ "mode": "none" }, "thresholdsStyle": { - "mode": "line+area" + "mode": "area" } }, "links": [], @@ -361,7 +363,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "multi" + "mode": "multi", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -444,7 +447,7 @@ "mode": "none" }, "thresholdsStyle": { - "mode": "line+area" + "mode": "area" } }, "mappings": [], @@ -481,7 +484,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "multi" + "mode": "multi", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -495,6 +499,14 @@ "refId": "A" } ], + "thresholds": [ + { + "colorMode": "critical", + "op": "gt", + "value": 0.1, + "visible": true + } + ], "title": "Swap used %", "type": "timeseries" }, @@ -579,7 +591,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -671,7 +684,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -885,7 +899,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -1001,54 +1016,80 @@ "noDataState": "no_data", "notifications": [] }, - "aliasColors": {}, - "bars": false, - "dashLength": 10, - "dashes": false, "description": "Watch filesystems filling up. Shows only mounts over 10 % of available bytes used.", "fieldConfig": { "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "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": "area" + } + }, "links": [], + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "transparent", + "value": null + }, + { + "color": "red", + "value": 0.8 + } + ] + }, "unit": "percentunit" }, "overrides": [] }, - "fill": 0, - "fillGradient": 0, "gridPos": { - "h": 7, - "w": 6, + "h": 6, + "w": 12, "x": 0, "y": 17 }, - "hiddenSeries": false, "id": 4, - "legend": { - "avg": false, - "current": false, - "hideEmpty": false, - "hideZero": false, - "max": false, - "min": false, - "show": false, - "total": false, - "values": false - }, - "lines": true, - "linewidth": 1, - "nullPointMode": "null", "options": { - "alertThreshold": true + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } }, - "percentage": false, - "pluginVersion": "8.3.6", - "pointradius": 2, - "points": false, - "renderer": "flot", - "seriesOverrides": [], - "spaceLength": 10, - "stack": false, - "steppedLine": false, + "pluginVersion": "8.4.5", "targets": [ { "expr": "1 - (node_filesystem_avail_bytes / node_filesystem_size_bytes) > 0.1", @@ -1061,49 +1102,144 @@ "refId": "A" } ], + "title": "Storage usage % per partition", + "transformations": [], + "type": "timeseries" + }, + { + "alert": { + "alertRuleTags": {}, + "conditions": [ + { + "evaluator": { + "params": [ + 0.5 + ], + "type": "gt" + }, + "operator": { + "type": "and" + }, + "query": { + "params": [ + "A", + "5m", + "now" + ] + }, + "reducer": { + "params": [], + "type": "avg" + }, + "type": "query" + } + ], + "executionErrorState": "alerting", + "for": "5m", + "frequency": "15m", + "handler": 1, + "name": "User ciphertext usage % per node alert", + "noDataState": "no_data", + "notifications": [] + }, + "description": "How much user data do we store", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic" + }, + "custom": { + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "area" + } + }, + "mappings": [], + "max": 1, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "yellow", + "value": 0.5 + }, + { + "color": "red", + "value": 0.8 + } + ] + }, + "unit": "percentunit" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 12, + "y": 17 + }, + "id": 41, + "options": { + "legend": { + "calcs": [], + "displayMode": "hidden", + "placement": "bottom" + }, + "tooltip": { + "mode": "multi", + "sort": "none" + } + }, + "targets": [ + { + "datasource": { + "type": "prometheus", + "uid": "000000001" + }, + "exemplar": true, + "expr": "1 - (node_filesystem_avail_bytes{mountpoint=\"/storage\"} / node_filesystem_size_bytes{mountpoint=\"/storage\"})", + "interval": "", + "legendFormat": "{{instance}}", + "refId": "A" + } + ], "thresholds": [ { "colorMode": "critical", - "fill": true, - "line": true, "op": "gt", - "value": 0.8, + "value": 0.5, "visible": true } ], - "timeRegions": [], - "title": "Storage usage %", - "tooltip": { - "shared": false, - "sort": 2, - "value_type": "individual" - }, - "transformations": [], - "type": "graph", - "xaxis": { - "mode": "time", - "show": true, - "values": [] - }, - "yaxes": [ - { - "$$hashKey": "object:131", - "format": "percentunit", - "logBase": 1, - "max": "1", - "min": "0", - "show": true - }, - { - "$$hashKey": "object:132", - "format": "short", - "logBase": 1, - "show": true - } - ], - "yaxis": { - "align": false - } + "title": "User ciphertext usage % per node", + "type": "timeseries" }, { "description": "Input Output Operations per second. Positive values mean read, negative write.", @@ -1161,9 +1297,9 @@ }, "gridPos": { "h": 7, - "w": 6, - "x": 6, - "y": 17 + "w": 8, + "x": 0, + "y": 23 }, "id": 14, "options": { @@ -1173,7 +1309,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -1252,9 +1389,9 @@ }, "gridPos": { "h": 7, - "w": 6, - "x": 12, - "y": 17 + "w": 8, + "x": 8, + "y": 23 }, "id": 16, "options": { @@ -1264,7 +1401,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -1353,7 +1491,7 @@ "mode": "normal" }, "thresholdsStyle": { - "mode": "line" + "mode": "off" } }, "mappings": [], @@ -1377,9 +1515,9 @@ }, "gridPos": { "h": 7, - "w": 6, - "x": 18, - "y": 17 + "w": 8, + "x": 16, + "y": 23 }, "id": 32, "options": { @@ -1389,7 +1527,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "pluginVersion": "8.3.5", @@ -1411,7 +1550,7 @@ "h": 1, "w": 24, "x": 0, - "y": 24 + "y": 30 }, "id": 34, "panels": [], @@ -1473,7 +1612,7 @@ "h": 7, "w": 8, "x": 0, - "y": 25 + "y": 31 }, "id": 36, "options": { @@ -1483,7 +1622,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "targets": [ @@ -1557,7 +1697,7 @@ "h": 7, "w": 8, "x": 8, - "y": 25 + "y": 31 }, "id": 38, "options": { @@ -1567,7 +1707,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "targets": [ @@ -1641,7 +1782,7 @@ "h": 7, "w": 8, "x": 16, - "y": 25 + "y": 31 }, "id": 37, "options": { @@ -1651,7 +1792,8 @@ "placement": "bottom" }, "tooltip": { - "mode": "single" + "mode": "single", + "sort": "none" } }, "targets": [ @@ -1671,15 +1813,15 @@ "type": "timeseries" } ], - "refresh": "5s", - "schemaVersion": 34, + "refresh": false, + "schemaVersion": 35, "style": "dark", "tags": [], "templating": { "list": [] }, "time": { - "from": "now-12h", + "from": "now-3h", "to": "now" }, "timepicker": {},