{ "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": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "prometheus", "uid": "{{ grafana_prometheus_datasource_uid }}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 8, "x": 0, "y": 0 }, "id": 1, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "value" }, "pluginVersion": "11.0.0", "targets": [ { "expr": "sum(up{job=~\"swarm-managers-node|swarm-workers-node\"})", "instant": true, "refId": "A" } ], "title": "Swarm nodes up", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_prometheus_datasource_uid }}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 8, "x": 8, "y": 0 }, "id": 2, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "value" }, "pluginVersion": "11.0.0", "targets": [ { "expr": "count(up{job=~\"swarm-managers-node|swarm-workers-node\"} == 0)", "instant": true, "refId": "A" } ], "title": "Swarm node exporters down", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_prometheus_datasource_uid }}" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 1 } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 8, "x": 16, "y": 0 }, "id": 3, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "value" }, "pluginVersion": "11.0.0", "targets": [ { "expr": "count(up{job=~\"swarm-managers-containers|swarm-workers-containers\"} == 0)", "instant": true, "refId": "A" } ], "title": "Swarm cAdvisor targets down", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_prometheus_datasource_uid }}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 5 }, "id": 4, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "pluginVersion": "11.0.0", "targets": [ { "expr": "100 - (avg by (instance) (rate(node_cpu_seconds_total{job=~\"swarm-managers-node|swarm-workers-node\", mode=\"idle\"}[5m])) * 100)", "legendFormat": "{{ '{{' }}instance{{ '}}' }}", "refId": "A" } ], "title": "Swarm host CPU busy", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "{{ grafana_prometheus_datasource_uid }}" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "unit": "percent" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 5 }, "id": 5, "options": { "legend": { "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "mode": "multi", "sort": "none" } }, "pluginVersion": "11.0.0", "targets": [ { "expr": "100 * (1 - (node_memory_MemAvailable_bytes{job=~\"swarm-managers-node|swarm-workers-node\"} / node_memory_MemTotal_bytes{job=~\"swarm-managers-node|swarm-workers-node\"}))", "legendFormat": "{{ '{{' }}instance{{ '}}' }}", "refId": "A" } ], "title": "Swarm host memory used", "type": "timeseries" } ], "refresh": "30s", "schemaVersion": 39, "style": "dark", "tags": [ "homelab", "swarm", "health" ], "templating": { "list": [] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Swarm Health", "uid": "swarm-health", "version": 1, "weekStart": "" }