Sign inSign up

betterdb/agent

By betterdb

•Updated about 15 hours ago

Lightweight agent to connect Valkey/Redis instances to BetterDB Cloud

Image
Developer tools
Databases & storage
Monitoring & observability
0

3.8K

betterdb/agent repository overview

⁠BetterDB Agent

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.

⁠Quick Start

# 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

⁠Configuration

VariableDefaultDescription
BETTERDB_TOKEN(required)Agent token from BetterDB Cloud
BETTERDB_CLOUD_URL(required)wss://<workspace>.app.betterdb.com/agent/ws
VALKEY_HOSTlocalhostValkey/Redis hostname
VALKEY_PORT6379Valkey/Redis port
VALKEY_PASSWORD—Auth password
VALKEY_USERNAMEdefaultACL username
VALKEY_TLSfalseEnable TLS (required for ElastiCache Serverless)
VALKEY_DB0Database number

⁠TLS (AWS ElastiCache Serverless)

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

⁠With Authentication

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

⁠Managed Services

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.

⁠Platforms

linux/amd64 · linux/arm64

Tag summary

Content type

Image

Digest

sha256:dc33d0ade…

Size

74.1 MB

Last updated

about 15 hours ago

docker pull betterdb/agent