banshee is under active development: collectors will keep changing, and a version you publish will likely need adjustments. For stable use, wait for version 1.0.0.

Services

banshee/services-collection/services/redis/ssh/

clients

The clients connected to a Redis server, those blocked, and the connections refused at maxclients, by SSH and redis-cli INFO.

  • services
  • redis
  • valkey
  • clients
  • maxclients
  • redis-cli
  • ssh

by banshee1 installation1 version

v1Latest

Published on October 27, 2026. First version.

Redis clients, by SSH

Returns the clients connected to a Redis server, those blocked on a blocking command, and the connections it refused because maxclients was reached, read by redis-cli INFO on the Redis server over SSH. Three watches are offered, each one set on the probe. No password leaves banshee.

Versions

Redis 2.8 and later (rejected_connections), and Valkey. Generic: no folder of version.

How it works

The collector runs, on the server, LC_ALL=C redis-cli -p <port> INFO, as redis/ssh/memory does, the password, when there is one, going from its file on the server into REDISCLI_AUTH. It reads:

connected_clients:42
blocked_clients:0
rejected_connections:0
  • clients is connected_clients, redis-cli itself included; blocked is blocked_clients, the clients waiting on BLPOP, BRPOP and the like.
  • rejected is rejected_connections, the connections refused because maxclients was reached: it only grows until Redis restarts, and "Connections refused" raises when it grows. It is the sign that the limit is too low, more reliable than a count against maxclients, which old servers do not give.
  • A Redis that refuses the connection is critical: "Redis is not running". A refused account stops the collector misconfigured, as does any other answer than INFO.
  • Nothing is written: INFO only reads.

Prerequisites

The same as redis/ssh/memory: an SSH account without write rights, redis-cli in its path, the password, when Redis asks for one, in a file of that account, mode 0400 (redis:password-file), no sudo, and the fingerprint of the server's host key.

Variables

NameLabelSaysDefault
redis:portPortthe port Redis listens on, on the server6379
redis:password-filePassword filethe path, on the server, of the file that holds the password; empty: no password—

Outputs

NameLabelUnitPer instance
clientsClients connected—no
blockedClients blocked—no
rejectedConnections refused at maxclients since start—no

Watches

NameTitleKindDefaultsChecked by default
rejectedConnections refusedincrease, on rejectedcritical beyond 0 in 1 hyes
manyMany clientsabove a threshold, on clientsno threshold: set one on the probeno
blockedClients blockedabove a threshold, on blockedwarning above 10, for 3 runsno

Limits

  • Redis is reached on the server itself (127.0.0.1), without TLS, as its default user only (see redis/ssh/memory).
  • A queue whose consumers wait with BLPOP keeps clients blocked by design: "Clients blocked" is unchecked for that reason.
  • Not checked against a Redis: the fields are those of the documentation of INFO (redis.io).