LATENCY LATEST

Available since 2.8.13.

The LATENCY LATEST command reports the latest latency events logged.

Each reported event has the following fields:

  • Event name.
  • Unix timestamp of the latest latency spike for the event.
  • Latest event latency in millisecond.
  • All-time maximum latency for this event.

"All-time" means the maximum latency since the Redis instance was started, or the time that events were reset LATENCY RESET.

@example:

  1. 127.0.0.1:6379> debug sleep 1
  2. OK
  3. (1.00s)
  4. 127.0.0.1:6379> debug sleep .25
  5. OK
  6. 127.0.0.1:6379> latency latest
  7. 1) 1) "command"
  8. 2) (integer) 1405067976
  9. 3) (integer) 251
  10. 4) (integer) 1001

For more information refer to the Latency Monitoring Framework page.

*Return value

Array reply: specifically:

The command returns an array where each element is a four elements array representing the event's name, timestamp, latest and all-time latency measurements.