延迟历史

Syntax
LATENCY HISTORY event
Available since:
2.8.13
Time complexity:
O(1)
ACL categories:
@admin, @slow, @dangerous,

LATENCY HISTORY 命令返回 event 的延迟峰值时间序列的原始数据。

这对于想要获取原始数据以执行监控、显示图表等的应用程序非常有用。

该命令将返回最多160个时间戳-延迟对,用于event

event 的有效值为:

  • active-defrag-cycle
  • aof-fsync-always
  • aof-stat
  • aof-rewrite-diff-write
  • aof-rename
  • aof-write
  • aof-write-active-child
  • aof-write-alone
  • aof-write-pending-fsync
  • command
  • expire-cycle
  • eviction-cycle
  • eviction-del
  • fast-command
  • fork
  • rdb-unlink-temp-file

示例

127.0.0.1:6379> latency history command
1) 1) (integer) 1405067822
   2) (integer) 251
2) 1) (integer) 1405067941
   2) (integer) 1001

更多信息请参考延迟监控框架页面

RESP2/RESP3 回复

Array reply: an array where each element is a two elements array representing the timestamp and the latency of the event.
RATE THIS PAGE
Back to top ↑