Redis info 度量集
编辑Redis info 度量集编辑
Redis info
度量集通过运行 INFO
命令并解析返回的结果来收集 Redis 的信息和统计数据。
这是一个默认度量集。如果主机模块未配置,则默认情况下启用此度量集。
有关度量集中每个字段的说明,请参见 导出字段 部分。
以下是此度量集生成的示例文档
{ "@timestamp": "2017-10-12T08:05:34.853Z", "event": { "dataset": "redis.info", "duration": 115000, "module": "redis" }, "metricset": { "name": "info", "period": 10000 }, "os": { "full": "Linux 5.10.47-linuxkit x86_64" }, "process": { "pid": 1 }, "redis": { "info": { "clients": { "blocked": 0, "connected": 2, "max_input_buffer": 0, "max_output_buffer": 0 }, "cluster": { "enabled": false }, "commandstats": { "info": { "calls": 3, "usec": 241, "usec_per_call": 80.33 }, "slowlog": { "calls": 3, "usec": 22, "usec_per_call": 7.33 } }, "cpu": { "used": { "sys": 0.85, "sys_children": 0, "user": 0.14, "user_children": 0 } }, "memory": { "active_defrag": {}, "allocator": "jemalloc-4.0.3", "allocator_stats": { "fragmentation": {}, "rss": {} }, "fragmentation": { "ratio": 2.74 }, "max": { "policy": "noeviction", "value": 0 }, "used": { "lua": 37888, "peak": 843312, "rss": 2310144, "value": 843312 } }, "persistence": { "aof": { "bgrewrite": { "last_status": "ok" }, "buffer": {}, "copy_on_write": {}, "enabled": false, "fsync": {}, "rewrite": { "buffer": {}, "current_time": { "sec": -1 }, "in_progress": false, "last_time": { "sec": -1 }, "scheduled": false }, "size": {}, "write": { "last_status": "ok" } }, "loading": false, "rdb": { "bgsave": { "current_time": { "sec": -1 }, "in_progress": false, "last_status": "ok", "last_time": { "sec": -1 } }, "copy_on_write": {}, "last_save": { "changes_since": 0, "time": 1642155583 } } }, "replication": { "backlog": { "active": 0, "first_byte_offset": 0, "histlen": 0, "size": 1048576 }, "connected_slaves": 0, "master": { "offset": 0, "sync": {} }, "role": "master", "slave": {} }, "server": { "arch_bits": "64", "build_id": "b9a4cd86ce8027d3", "config_file": "", "gcc_version": "6.4.0", "git_dirty": "0", "git_sha1": "00000000", "hz": 10, "lru_clock": 14765805, "mode": "standalone", "multiplexing_api": "epoll", "run_id": "567ea825bae461f81d687f671c6cfaef5c1e45c7", "tcp_port": 6379, "uptime": 174 }, "slowlog": { "count": 0 }, "stats": { "active_defrag": {}, "commands_processed": 6, "connections": { "received": 164, "rejected": 0 }, "instantaneous": { "input_kbps": 0, "ops_per_sec": 0, "output_kbps": 0 }, "keys": { "evicted": 0, "expired": 0 }, "keyspace": { "hits": 0, "misses": 0 }, "latest_fork_usec": 0, "migrate_cached_sockets": 0, "net": { "input": { "bytes": 170 }, "output": { "bytes": 6593 } }, "pubsub": { "channels": 0, "patterns": 0 }, "sync": { "full": 0, "partial": { "err": 0, "ok": 0 } } } } }, "service": { "address": "localhost:63118", "type": "redis", "version": "3.2.12" } }