From 2049d770b77d39c6b93907accd87b7c575a04fe4 Mon Sep 17 00:00:00 2001 From: Binbin Date: Tue, 4 Feb 2025 14:45:21 +0800 Subject: [PATCH 1/2] Add sum and cnt stats in LATENCY LATEST Signed-off-by: Binbin --- commands/latency-latest.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/commands/latency-latest.md b/commands/latency-latest.md index 2cac4f9c..97fd3612 100644 --- a/commands/latency-latest.md +++ b/commands/latency-latest.md @@ -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. +* All-time summary latency for this event, added in 8.1. +* The event count that trigger the latency, 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`. @@ -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]. From 9497e4f16c52900bf56c2ffc9295ff1812d159dc Mon Sep 17 00:00:00 2001 From: Binbin Date: Tue, 4 Feb 2025 16:39:33 +0800 Subject: [PATCH 2/2] Update commands/latency-latest.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Viktor Söderqvist Signed-off-by: Binbin --- commands/latency-latest.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/latency-latest.md b/commands/latency-latest.md index 97fd3612..045d73f3 100644 --- a/commands/latency-latest.md +++ b/commands/latency-latest.md @@ -6,8 +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. -* All-time summary latency for this event, added in 8.1. -* The event count that trigger the latency, added in 8.1. +* 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`.