From 71fa623744ad38f29965c543a785ebf63a9f93fc Mon Sep 17 00:00:00 2001 From: nuc-cron Date: Wed, 27 May 2026 03:25:02 +0000 Subject: [PATCH] grafana: auto-sync 2026-05-27 --- dashboards/Portainer-BE.json | 217 +++++++++++++++++++++++++++++++++++ 1 file changed, 217 insertions(+) create mode 100644 dashboards/Portainer-BE.json diff --git a/dashboards/Portainer-BE.json b/dashboards/Portainer-BE.json new file mode 100644 index 0000000..7b3449b --- /dev/null +++ b/dashboards/Portainer-BE.json @@ -0,0 +1,217 @@ +{ + "id": 1148857358921728, + "panels": [ + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 0, + "y": 0 + }, + "id": 1, + "targets": [ + { + "expr": "portainer_environment_count{type=\"docker\",job=\"portainer\"}", + "legendFormat": "docker", + "refId": "A" + } + ], + "title": "Docker Environments", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "fixedColor": "green", + "mode": "fixed" + } + } + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 4, + "y": 0 + }, + "id": 2, + "targets": [ + { + "expr": "count(portainer_environment_status{job=\"portainer\"} == 1)", + "legendFormat": "healthy", + "refId": "A" + } + ], + "title": "Healthy Environments", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "color": { + "mode": "thresholds" + }, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": null + }, + { + "color": "red", + "value": 1 + } + ] + } + } + }, + "gridPos": { + "h": 4, + "w": 4, + "x": 8, + "y": 0 + }, + "id": 3, + "targets": [ + { + "expr": "count(portainer_environment_status{job=\"portainer\"} == 2) OR vector(0)", + "legendFormat": "unhealthy", + "refId": "A" + } + ], + "title": "Unhealthy Environments", + "type": "stat" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 4 + }, + "id": 4, + "options": { + "showHeader": true + }, + "targets": [ + { + "expr": "portainer_environment_status{job=\"portainer\"}", + "instant": true, + "legendFormat": "{{name}} ({{url}})", + "refId": "A" + } + ], + "title": "Environment Health", + "type": "table" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "unit": "percent" + } + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 10 + }, + "id": 5, + "targets": [ + { + "expr": "portainer_environment_resource_usage{resource_type=\"cpu\",job=\"portainer\"}", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "Environment CPU Usage %", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "fieldConfig": { + "defaults": { + "unit": "percent" + } + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 12, + "y": 10 + }, + "id": 6, + "targets": [ + { + "expr": "portainer_environment_resource_usage{resource_type=\"memory\",job=\"portainer\"}", + "legendFormat": "{{name}}", + "refId": "A" + } + ], + "title": "Environment Memory Usage %", + "type": "timeseries" + }, + { + "datasource": { + "type": "prometheus", + "uid": "PBFA97CFB590B2093" + }, + "gridPos": { + "h": 6, + "w": 12, + "x": 0, + "y": 18 + }, + "id": 7, + "targets": [ + { + "expr": "rate(portainer_authentication_total_status{job=\"portainer\"}[5m])", + "legendFormat": "{{status}}", + "refId": "A" + } + ], + "title": "Auth Attempts (5m rate)", + "type": "timeseries" + } + ], + "refresh": "1m", + "tags": [ + "portainer", + "docker" + ], + "templating": { + "list": [] + }, + "time": { + "from": "now-3h", + "to": "now" + }, + "timezone": "browser", + "title": "Portainer BE", + "uid": "portainer-be", + "version": 2 +}