Prerequisites
- Python 3.9+
- A running Redis instance
- Celery 5.2+ workers (they don’t need to be healthy — Kanari will tell you if they’re not)
1. Install
2. Generate a config file
kanari.yaml in the current directory with sensible defaults. If REDIS_URL or CELERY_BROKER_URL are already set in your environment, those values are written into the file automatically. The command also pings Redis and reports whether it’s reachable:
kanari.yaml and update redis_url / celery_broker_url if needed, then continue.
3. Verify your setup
kanari.yaml if it’s in the current directory.
Fix what doctor reports before running audit.
4. Run a health check
Tip: Ifkanari.yamlis in your current directory, all commands load it automatically — no--configflag needed. If the file is somewhere else, usekanari audit --config /path/to/kanari.yaml.
5. Connect to Kanari for alerts (optional)
To get Slack and email alerts when something breaks, connect the agent to your Kanari account:Next steps
kanari doctor
Diagnose connection issues, missing libraries, and config errors in one command.
Enable latency tracking
Add one line to your Celery app to measure real queue wait times.
Run a deep audit
Check your Redis and Celery configuration for common misconfigurations.
CI/CD integration
Use exit codes to fail your pipeline when Celery issues are detected.