Grafana panel: container health across all CTs #18

Open
opened 2026-05-27 05:56:51 +00:00 by fkrebs · 0 comments
Owner

Goal

Single Grafana dashboard (or panel in existing monitoring dash) showing health status of all Docker containers across CT 104, CT 109, and any other Portainer-managed hosts.

Approach options

  1. Portainer metricsportainer_environment_status already scraped. Extend to per-container level if Portainer exposes it.
  2. cAdvisor on each host — exposes container_last_seen, restart counts, OOM kills per container.
  3. Systemd timer on nuc — pings every Docker healthcheck endpoint, writes Prometheus textfile, Gotify on regression. Quick win, no new services.

Acceptance criteria

  • Can see at a glance which containers are unhealthy/restarting across all hosts
  • Gotify alert fires within 5 min of a container going unhealthy
  • Covers CT 104 (Portainer agent) + CT 109 (Portainer local) at minimum

Related

  • Portainer metrics already in Grafana at http://192.168.1.8:3000/d/portainer-be/portainer-be
  • Alert rules in /opt/stacks/monitoring/prometheus/rules/portainer.yml
## Goal Single Grafana dashboard (or panel in existing monitoring dash) showing health status of all Docker containers across CT 104, CT 109, and any other Portainer-managed hosts. ## Approach options 1. **Portainer metrics** — `portainer_environment_status` already scraped. Extend to per-container level if Portainer exposes it. 2. **cAdvisor** on each host — exposes `container_last_seen`, restart counts, OOM kills per container. 3. **Systemd timer on nuc** — pings every Docker healthcheck endpoint, writes Prometheus textfile, Gotify on regression. Quick win, no new services. ## Acceptance criteria - [ ] Can see at a glance which containers are unhealthy/restarting across all hosts - [ ] Gotify alert fires within 5 min of a container going unhealthy - [ ] Covers CT 104 (Portainer agent) + CT 109 (Portainer local) at minimum ## Related - Portainer metrics already in Grafana at `http://192.168.1.8:3000/d/portainer-be/portainer-be` - Alert rules in `/opt/stacks/monitoring/prometheus/rules/portainer.yml`
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: fkrebs/docs#18