Skip to content

Redis / Valkey

Common parts of every card are described in Monitor window.

Detected by systemd units redis, redis-server, valkey, valkey-server and their @ instances, or binaries redis-server, valkey-server
Read every 60 s while the Monitor window shows the tab
Active probe redis-cli -s <socket> INFO through a verified local unix socket (off by default)
Test config none (see below)
Manual command INFO with a password (--askpass)

Passive:

  • Server: product and version from --version of trusted server binaries (only v= leaves the host) (only with the active probe: the passive read runs no binary of the service).
  • Process: redis-server/valkey-server (and sentinel) processes in the session’s PID namespace: user, binary, listen addresses from the process title (PID namespace unknown (needs root) when it cannot be compared).
  • Configuration: the file of the unit’s ExecStart, of the process, or the usual places (/etc/redis/redis.conf, /etc/redis.conf, /etc/valkey/valkey.conf), with its includes, read by KryoDesk’s own reader. Shown keys: port, tls-port, bind, unixsocket, unixsocketperm, protected-mode, maxmemory, maxmemory-policy, appendonly, dir, replicaof, save (not set (server default) when absent).
  • Sockets: unix sockets with their owners, verified when the active probe may use them (the active probe uses only unix sockets).
  • Host RAM (MemTotal).

With the active probe on (otherwise Active probe off: memory use, clients, persistence and replication need it), per instance (at most 4; more are listed as Not asked): Memory (used of maxmemory, orange from 90 %, red from 95 %, policy, RSS, peak, fragmentation), Clients, Keys, RDB and AOF persistence, Loading, Replication (role, master and replicas only as IP and port).

Runs: redis-cli -s <socket> INFO (or valkey-cli) through a local unix socket only, at most 4 instances, timeout 3 each, after checking the socket: owned by root or the server account (redis, valkey, User= of the unit), and /, every directory and link on the way owned by root or that account and not writable by others (so never under /tmp). The client is trusted and not setuid; never a password: the client runs under env -i (no REDISCLI_AUTH, VALKEYCLI_AUTH, VALKEYCLI_USER or HOME), no -a/--user/--pass, REDISCLI_RCFILE and VALKEYCLI_RCFILE=/dev/null. Only INFO (no CONFIG GET, no CLIENT LIST). The answer is filtered on the host to a closed list of keys.

Traces on the host: one connection per instance and probe (every 60 s): total_connections_received grows, the client shows in CLIENT LIST for a moment, INFO counts in commandstats and is seen by MONITOR clients, an “Accepted” log line with loglevel verbose; with a password set: one NOAUTH error reply (errorstat_NOAUTH), no AUTH attempt, nothing in ACL LOG.

None: Redis and Valkey have no option that only checks the configuration: redis-server with a configuration file starts a server (--test-memory tests RAM, not the file).

INFO with a password: redis-cli --askpass -s <socket> INFO with the verified socket (or redis-cli --askpass INFO: 127.0.0.1:6379 by default, add -h/-p or -s <socket>). Asks for the password in the terminal; KryoDesk does not see it. --askpass needs redis-cli 6.0 or newer (or valkey-cli).

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close