Grafana templates
Five drop-in Grafana dashboards keyed to z4j's metric names.
Five Grafana dashboards are kept in the z4j development tree under deploy/grafana/ (they are not in the public package repository, the sdist or the image): overview, tasks, agents/commands, notifications, and the scheduler companion. Each one is a standard import (Grafana, New, Import, pick datasource, save) or provisionable via a file-based dashboard provider for infra-as-code shops. Every brain dashboard exposes a $project template variable so multi-tenant deployments can scope panels to a single project without editing JSON. The split into five small dashboards over one mega-dashboard means each fits a single 1080p screen and matches the operator's natural drill path: overview -> per-area -> per-task / per-channel.
Ships with
- z4j-overview: agents online + RSS + DB pool + deadlocks + task throughput + queue depth
- z4j-tasks: failure rate, duration heatmap, top-10 failing / slow / busiest / revoked task names
- z4j-agents: per-project agent + worker counts, command status mix, late-result counter, WS connections
- z4j-notifications: per-channel send rate, failure-rate table, cooldown skips, 24h channel mix donut
- z4j-scheduler: leader status, fire throughput, FireSchedule RPC latency p50/p99, tick drift, fire variance, top-10 failing and slow schedules
Highlights
- Standard Grafana dashboard JSON; provisionable via file-based dashboards provider for GitOps
- Documented suggested alerts (zero agents, pool saturation, deadlocks, self-watch errors, channel failure rate, late command results)
- Top-N panels use `topk` and ratio panels clamp their denominators with `clamp_min`, so they stay readable on cold deploys with sparse data
Related