Skip to content

Commit 9e15309

Browse files
soloestoyoranagra
andauthored
Add WATCH metrics (#2665)
--------- Co-authored-by: Oran Agra <[email protected]>
1 parent ee795e4 commit 9e15309

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

commands/client-list.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Here is the meaning of the fields:
2020
* `psub`: number of pattern matching subscriptions
2121
* `ssub`: number of shard channel subscriptions. Added in Redis 7.0.3
2222
* `multi`: number of commands in a MULTI/EXEC context
23+
* `watch`: number of keys this client is currently watching. Added in Redis 8.0
2324
* `qbuf`: query buffer length (0 means no query pending)
2425
* `qbuf-free`: free space of the query buffer (0 means the buffer is full)
2526
* `argv-mem`: incomplete arguments for the next command (already extracted from query buffer)

commands/info.md

+2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ Here is the meaning of all fields in the **clients** section:
8484
`BRPOP`, `BRPOPLPUSH`, `BLMOVE`, `BZPOPMIN`, `BZPOPMAX`)
8585
* `tracking_clients`: Number of clients being tracked (`CLIENT TRACKING`)
8686
* `pubsub_clients`: Number of clients in pubsub mode (`SUBSCRIBE`, `PSUBSCRIBE`, `SSUBSCRIBE`). Added in Redis 8.0
87+
* `watching_clients`: Number of clients in watching mode (`WATCH`). Added in Redis 8.0
8788
* `clients_in_timeout_table`: Number of clients in the clients timeout table
89+
* `total_watched_keys`: Number of watched keys. Added in Redis 8.0.
8890
* `total_blocking_keys`: Number of blocking keys. Added in Redis 7.2.
8991
* `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.
9092

0 commit comments

Comments
 (0)