By the end of this guide, the Sluice agent will be reading events from your Redis broker and forwarding them to the dashboard — without modifying a single line of your application code.
Prerequisites
- Docker (or any container runtime)
- A Redis instance used as your Celery broker
- A Sluice account (free, no credit card required)
1. Create a connection
Sign in to the Sluice dashboard and go to Connections. Click Add Connection, pick “Docker Agent”, and name your connection (e.g., “Production Celery”). You’ll receive:
- An API key — starts with
sk_
- A Connection ID — a UUID that identifies this connection
Copy both values.
2. Run the agent
That’s it. One command.
3. Verify the connection
Check the agent logs to confirm it connected:
You should see:
4. See your data
Open the Sluice dashboard. Jobs from your Celery workers will appear in real time.
How the agent works
The Go agent connects directly to your Redis broker and:
- Subscribes to Celery events — listens on
celeryev.* PUB/SUB channels for task and worker events.
- Polls queue depths — reads queue lengths via
LLEN on queue keys.
- Reads queue topology — scans
_kombu.binding.* keys to discover which queues exist.
- Normalizes and forwards — converts Celery events to Sluice’s unified model and batches them to the Sluice API.
- Reconnects automatically — if Redis goes down, the agent retries with exponential backoff and resumes when it comes back.
Celery events must be enabled. The agent reads events from Redis PUB/SUB, but Celery disables events by default. Add these settings to your Celery config:The Python SDK enables these automatically — the agent cannot, since it doesn’t modify your application.
The Docker agent requires a Redis broker. RabbitMQ is not supported by the agent in V0. The agent reads Celery events from Redis PUB/SUB channels and polls queue depths via Redis commands — none of which apply to AMQP brokers. If your Celery deployment uses RabbitMQ, use the Python SDK instead.
Kubernetes deployment
For production Kubernetes clusters, deploy the agent as a single-replica Deployment:
Run one agent per Redis instance. If your Celery workers use multiple Redis databases or instances, deploy one agent for each.
SDK vs Agent — which to choose
Next steps