diff --git a/nixos/modules/monitoring/server/grafana-dashboards/backups.json b/nixos/modules/monitoring/server/grafana-dashboards/backups.json index 96a2bceb994104d126fd93fd7bf16ce127810dc2..29a2a14076a20d6f66c2e77834d79d329261e70c 100644 --- a/nixos/modules/monitoring/server/grafana-dashboards/backups.json +++ b/nixos/modules/monitoring/server/grafana-dashboards/backups.json @@ -22,7 +22,6 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 39, "links": [], "liveNow": false, "panels": [ @@ -619,6 +618,127 @@ ], "title": "Monthly check-repo trigger", "type": "timeseries" + }, + { + "datasource": { + "type": "loki", + "uid": "000000002" + }, + "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": "off" + } + }, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "#EAB839", + "value": 3600 + }, + { + "color": "red", + "value": 10800 + } + ] + }, + "unit": "dtdurations" + }, + "overrides": [] + }, + "gridPos": { + "h": 7, + "w": 12, + "x": 0, + "y": 15 + }, + "id": 49, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom" + }, + "tooltip": { + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "8.4.7", + "targets": [ + { + "datasource": { + "type": "loki", + "uid": "000000002" + }, + "expr": "{unit=\"borgbackup-job-daily.service\"} |= \"duration\" | pattern \"<_>\\\"duration\\\": <duration>,\"", + "legendFormat": "{{host}}", + "queryType": "range", + "refId": "A" + } + ], + "title": "Daily backup job run time", + "transformations": [ + { + "id": "labelsToFields", + "options": { + "keepLabels": [ + "duration", + "host" + ] + } + }, + { + "id": "convertFieldType", + "options": { + "conversions": [ + { + "destinationType": "number", + "targetField": "duration" + } + ], + "fields": {} + } + }, + { + "id": "merge", + "options": {} + } + ], + "type": "timeseries" } ], "refresh": "1m",