From ca9f1ad58bfa3c8cd6edb2eaa30d9093285eb94a Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" Date: Sun, 18 Feb 2024 11:49:49 +0800 Subject: [PATCH 1/2] Add WATCH metrics --- commands/client-list.md | 1 + commands/info.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/commands/client-list.md b/commands/client-list.md index 0eb1c735d8..acc0744900 100644 --- a/commands/client-list.md +++ b/commands/client-list.md @@ -20,6 +20,7 @@ Here is the meaning of the fields: * `psub`: number of pattern matching subscriptions * `ssub`: number of shard channel subscriptions. Added in Redis 7.0.3 * `multi`: number of commands in a MULTI/EXEC context +* `watch`: number of keys this client is currently watching. * `qbuf`: query buffer length (0 means no query pending) * `qbuf-free`: free space of the query buffer (0 means the buffer is full) * `argv-mem`: incomplete arguments for the next command (already extracted from query buffer) diff --git a/commands/info.md b/commands/info.md index d216804624..02b8d86357 100644 --- a/commands/info.md +++ b/commands/info.md @@ -84,7 +84,9 @@ Here is the meaning of all fields in the **clients** section: `BRPOP`, `BRPOPLPUSH`, `BLMOVE`, `BZPOPMIN`, `BZPOPMAX`) * `tracking_clients`: Number of clients being tracked (`CLIENT TRACKING`) * `pubsub_clients`: Number of clients in pubsub mode (`SUBSCRIBE`, `PSUBSCRIBE`, `SSUBSCRIBE`). Added in Redis 8.0 +* `watching_clients`: Number of clients in watching mode (`WATCH`). Added in Redis 8.0 * `clients_in_timeout_table`: Number of clients in the clients timeout table +* `total_watched_keys`: Number of watched keys. Added in Redis 8.0. * `total_blocking_keys`: Number of blocking keys. Added in Redis 7.2. * `total_blocking_keys_on_nokey`: Number of blocking keys that one or more clients that would like to be unblocked when the key is deleted. Added in Redis 7.2. From c895b5d891a4b806ba83692171ff6d7e32c2f0f9 Mon Sep 17 00:00:00 2001 From: "zhaozhao.zz" <276441700@qq.com> Date: Sun, 18 Feb 2024 16:53:02 +0800 Subject: [PATCH 2/2] Update commands/client-list.md Co-authored-by: Oran Agra --- commands/client-list.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/client-list.md b/commands/client-list.md index acc0744900..653e75a8ef 100644 --- a/commands/client-list.md +++ b/commands/client-list.md @@ -20,7 +20,7 @@ Here is the meaning of the fields: * `psub`: number of pattern matching subscriptions * `ssub`: number of shard channel subscriptions. Added in Redis 7.0.3 * `multi`: number of commands in a MULTI/EXEC context -* `watch`: number of keys this client is currently watching. +* `watch`: number of keys this client is currently watching. Added in Redis 8.0 * `qbuf`: query buffer length (0 means no query pending) * `qbuf-free`: free space of the query buffer (0 means the buffer is full) * `argv-mem`: incomplete arguments for the next command (already extracted from query buffer)