Key-value store
On this page
The Key-value store sensor connects to a Redis server from a private agent and either checks the connection or reads a key and compares its value. Use it to know that the cache or session store answers, and to watch values your applications keep in Redis: a feature flag, a counter, the size of a list.
In the wizard: Database → Key-value store (Redis). Requires an Enterprise plan and an Advanced private agent.
Settings#
Redis connection
| Setting | Description |
|---|---|
| Secret | The Redis connection string, stored as a Redis secret. |
| Timeout | Time allowed for the connection. |
| Check type | Connect: only open a connection. Key: also read a key. |
Key (when Check type is Key)
| Setting | Description |
|---|---|
| Key name | The key to read. It may use variables. |
| Key type | STRING, SET, SORTED SET, LIST or HASH. |
| Field | For a HASH, the field to read. |
| Condition, Check value type, Value to check | How to compare the value — or, for collections, their content and length. |
When is it healthy?#
When the connection opens within the timeout and, in key mode, the condition holds. A numeric value is recorded and charted.
Examples#
Redis sessions — Connection: Connect only.Checkout — Retry queue: keycheckout:retries, typeLIST, length Less than100.