Skip to main content

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 (requirepass or ACLs) is enabled

Setup

Option 1: Interactive CLI

Option 2: Environment variables

Option 3: Persistent store

Credentials

  • Password only (requirepass): set REDIS_PASSWORD and leave REDIS_USERNAME blank.
  • ACL user (Redis 6+): set both REDIS_USERNAME and REDIS_PASSWORD.
  • No auth: leave both blank (development only).
Set 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

Alias: 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.
Wait for Redis, then seed two keys and one latency event:
From a source checkout, configure the local connection with uv run opensre integrations setup redis and use these answers: Verify the connection:
The result should report a successful connection to Redis 7 on database 0. To exercise scan_redis_keys through an agent turn, run:
The result should include the opensre:jobs list and the expiring opensre:service:status string. Stop the disposable instance when finished:
This local instance has no password. It binds only to loopback, and the recipe does not write a secret to the repository.

Troubleshooting

Security

  • Prefer ACL users with least privilege over requirepass as root.
  • Enable TLS for managed / production Redis.
  • Store credentials out of source control.