Overview
The management feature provides APIs to inspect queue status and monitor your message processing system.Enabling management
Add themanagement feature to your Cargo.toml:
Management is currently supported for Redis and RabbitMQ brokers only.
Queue status
Get the status of a queue:With disambiguator
For fairness queues, specify the disambiguator:Queue size
Get queue sizes (available without management feature):Building a monitoring dashboard
Example of exposing queue metrics:Health checks
Implement health checks for your queue system:Alerting on failed messages
Monitor the failed queue for alerting:Metrics integration
Prometheus
OpenTelemetry
Redis CLI inspection
For Redis, you can also inspect queues directly:Best practices
Poll metrics periodically
Poll metrics periodically
Don’t query status on every request. Use a background task:
Set up alerts for failed messages
Set up alerts for failed messages
Monitor the failed queue and alert when it exceeds thresholds.
Track processing time
Track processing time
Measure how long messages spend in processing state to detect stuck jobs.