Skip to content

Commit

Permalink
Add sum and cnt stats in LATENCY LATEST (#224)
Browse files Browse the repository at this point in the history
See valkey-io/valkey#1570.

---------

Signed-off-by: Binbin <[email protected]>
Co-authored-by: Viktor Söderqvist <[email protected]>
  • Loading branch information
enjoy-binbin and zuiderkwast authored Feb 4, 2025
1 parent 23d7739 commit 511b975
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions commands/latency-latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Each reported event has the following fields:
* Unix timestamp of the latest latency spike for the event.
* Latest event latency in millisecond.
* All-time maximum latency for this event.
* Sum of the latencies recorded in the time series for this event, added in 8.1.
* The number of latency spikes recorded in the time series for this event, added in 8.1.

"All-time" means the maximum latency since the Valkey instance was
started, or the time that events were reset `LATENCY RESET`.
Expand All @@ -20,9 +22,11 @@ OK
OK
127.0.0.1:6379> latency latest
1) 1) "command"
2) (integer) 1405067976
3) (integer) 251
4) (integer) 1001
2) (integer) 1738651470
3) (integer) 254
4) (integer) 1005
5) (integer) 1259
6) (integer) 2
```

For more information refer to the [Latency Monitoring Framework page][lm].
Expand Down

0 comments on commit 511b975

Please sign in to comment.