LATENCY HISTORY
语法
LATENCY HISTORY event
- 可用版本
- Redis Open Source 2.8.13
- 时间复杂度
- O(1)
- ACL 类别
-
@admin,@slow,@dangerous,
LATENCY HISTORY 命令返回 `event` 延迟峰值时间序列的原始数据。
这对于想要获取原始数据以进行监控、显示图表等的应用程序非常有用。
此命令将为 `event` 返回最多 160 对时间戳-延迟值。
`event` 的有效值包括:
active-defrag-cycleaof-fsync-alwaysaof-stataof-rewrite-diff-writeaof-renameaof-writeaof-write-active-childaof-write-aloneaof-write-pending-fsynccommandexpire-cycleeviction-cycleeviction-delfast-commandforkrdb-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
更多信息请参阅延迟监控框架页面。