What is Kanari?
Kanari is a monitoring agent built specifically for Celery + Redis. It detects the problems that generic monitoring tools miss, ghost workers, queue latency, stuck tasks, and silent task loss, and tells you exactly what’s wrong and how to fix it.The problem with generic monitoring
Tools like Datadog and Grafana can tell you CPU and memory. They don’t understand Celery’s queue model, worker pool semantics, or task acknowledgment lifecycle. The most common Celery production failure looks like this: workers show as running, the queue keeps growing, nobody knows why. This happens because:- Workers reconnected to Redis after a blip but stopped consuming
- All worker slots are full with one slow task type
task_acks_late=Falsemeans tasks silently vanished on the last deploy- Queue latency is spiking but there’s no timestamp in the messages to measure it
How it works
Kanari connects directly to your Redis and Celery instances, the same way your workers do, and collects:- Queue depth per queue (via Redis
LLEN) - Queue latency — age of the oldest waiting task (requires KanariStampPlugin)
- Worker health — active tasks, concurrency slots, alive/offline status
- Stuck tasks — tasks running beyond your configured threshold
- Configuration risks —
task_acks_late, prefetch settings, Redis eviction policy
Commands
kanari init
Generate a starter kanari.yaml. Auto-detects connection URLs from the environment and probes Redis.
kanari doctor
Diagnose setup issues. Checks connectivity, libraries, config, and API key before you run anything else.
kanari audit
One-shot health check. Prints a report and exits with a status code. Great for CI/CD or debugging an incident.
kanari watch
Live dashboard that refreshes every N seconds. Use during an incident to see changes in real time.
kanari agent
Continuous monitoring daemon. Sends metrics to Kanari for persistent monitoring and Slack/email alerts.
kanari login
Authenticate with Kanari via magic link. Saves your API key to ~/.kanari/config automatically.
Two ways to use Kanari
Without an account — free foreverkanari audit and kanari watch work immediately with no account. Just point them at your Redis and Celery and run.
With a Kanari account — alerts + history
kanari login connects the agent to your Kanari account. After that, kanari agent runs in the background and sends you Slack or email alerts the moment something breaks.