Lightweight agent to connect Valkey/Redis instances to BetterDB Cloud
3.8K
Lightweight agent that connects your Valkey/Redis instances to BetterDB Cloud for monitoring and observability — without exposing your database to the internet.
All connections are outbound via WebSocket (WSS on port 443). No inbound firewall rules required.
# 1. Generate a token in the BetterDB Cloud UI (Via Agent tab)
# 2. Run the agent
docker run -d --name betterdb-agent \
--restart=always \
-e BETTERDB_TOKEN="<your-token>" \
-e BETTERDB_CLOUD_URL="wss://<your-workspace>.app.betterdb.com/agent/ws" \
-e VALKEY_HOST="<your-valkey-host>" \
-e VALKEY_PORT="6379" \
betterdb/agent
# 3. Check logs
docker logs -f betterdb-agent
| Variable | Default | Description |
|---|---|---|
BETTERDB_TOKEN | (required) | Agent token from BetterDB Cloud |
BETTERDB_CLOUD_URL | (required) | wss://<workspace>.app.betterdb.com/agent/ws |
VALKEY_HOST | localhost | Valkey/Redis hostname |
VALKEY_PORT | 6379 | Valkey/Redis port |
VALKEY_PASSWORD | — | Auth password |
VALKEY_USERNAME | default | ACL username |
VALKEY_TLS | false | Enable TLS (required for ElastiCache Serverless) |
VALKEY_DB | 0 | Database number |
docker run -d --name betterdb-agent \
--restart=always \
-e BETTERDB_TOKEN="<your-token>" \
-e BETTERDB_CLOUD_URL="wss://<your-workspace>.app.betterdb.com/agent/ws" \
-e VALKEY_HOST="my-cluster.serverless.use1.cache.amazonaws.com" \
-e VALKEY_PORT="6379" \
-e VALKEY_TLS="true" \
betterdb/agent
docker run -d --name betterdb-agent \
--restart=always \
-e BETTERDB_TOKEN="<your-token>" \
-e BETTERDB_CLOUD_URL="wss://<your-workspace>.app.betterdb.com/agent/ws" \
-e VALKEY_HOST="<your-valkey-host>" \
-e VALKEY_PORT="6379" \
-e VALKEY_USERNAME="myuser" \
-e VALKEY_PASSWORD="mypassword" \
betterdb/agent
Works with AWS ElastiCache, Google Memorystore, Azure Cache, Aiven, and others. The agent must run in the same VPC/network as your database. Commands restricted by the provider are detected automatically.
linux/amd64 · linux/arm64
Content type
Image
Digest
sha256:dc33d0ade…
Size
74.1 MB
Last updated
about 15 hours ago
docker pull betterdb/agent