Overview
OpenSRE uses Redis diagnostics to investigate cache and key-value store alerts — checking memory pressure and eviction rates, surfacing slow commands, monitoring replication lag, and inspecting key counts and TTLs. Works with Redis 5+ and compatible servers such as Valkey.Prerequisites
- Redis 5.0+ (or Valkey)
- Network access from the OpenSRE environment to your Redis instance
- Credentials, if authentication (
requirepassor ACLs) is enabled
Setup
Option 1: Interactive CLI
Option 2: Environment variables
Option 3: Persistent store
Credentials
- Password only (
requirepass): setREDIS_PASSWORDand leaveREDIS_USERNAMEblank. - ACL user (Redis 6+): set both
REDIS_USERNAMEandREDIS_PASSWORD. - No auth: leave both blank (development only).
REDIS_SSL=true for managed Redis / TLS endpoints (TLS is off by default). Confirm the server has TLS enabled (for example tls-port 6379).
Investigation tools
Verify
valkey.
Local Docker verification
Use this disposable instance to verify Redis without external credentials. The diagnostic settings make the slow log and latency tools return useful sample data; do not copy them to a production server.uv run opensre integrations setup redis and use these answers:
Verify the connection:
scan_redis_keys through an agent turn, run:
opensre:jobs list and the expiring
opensre:service:status string. Stop the disposable instance when finished:
Troubleshooting
Security
- Prefer ACL users with least privilege over
requirepassas root. - Enable TLS for managed / production Redis.
- Store credentials out of source control.