MetricBeat监控Redis

目录

一、安装部署

二、开启Redis监控模块

三、编辑Redis配置文件

四、启动Metricbeat

五、查看监控图表


一、安装部署

metriceat的安装部署参考章节: 监控组件>Metricbeat安装使用,这里不再赘述。

二、开启Redis监控模块

进入metricbeat安装目录

bash 复制代码
./metricbeat modules enable redis

三、编辑Redis配置文件

bash 复制代码
vim modules.d/redis.yml
bash 复制代码
# Module: redis
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/main/metricbeat-module-redis.html
 
- module: redis
  metricsets:
    - info
    - keyspace
    - key
  key.patterns:
    - pattern: '*'
  period: 10s
 
  # Redis hosts
  hosts: ["127.0.0.1:6379"]
 
  # Network type to be used for redis connection. Default: tcp
  #network: tcp
 
  # Max number of concurrent connections. Default: 10
  #maxconn: 10
 
  # Redis AUTH username (Redis 6.0+). Empty by default.
  #username: user
 
  # Redis AUTH password. Empty by default.
  password: Redis@123456
 
  # Optional SSL/TLS (Redis 6.0+). By default is false.
  #ssl.enabled: true
 
  # List of root certificates for SSL/TLS server verification
  #ssl.certificate_authorities: ["/etc/pki/root/ca.crt"]
 
  # Certificate for SSL/TLS client authentication
  #ssl.certificate: "/etc/pki/client/cert.crt"
 
  # Client certificate key file
  #ssl.key: "/etc/pki/client/cert.key"

四、启动Metricbeat

bash 复制代码
nohup ./metricbeat -e  > ./metricbeat.log 2>&1 &

五、查看监控图表

登入kibana,进入dashboard,搜索 redis,即可看到相关图表。

相关推荐
IT规划师17 分钟前
Redis 核心机制 | Pipeline 与 Batch:降低网络 RTT
redis·pipeline·batch·rtt·.net10
goehou1 天前
Redis 挂掉之后,数据能恢复到哪一步
redis·持久化·aof·rdb
飞奔的瓜牛1 天前
运维工程师 Redis 日常巡检清单与实战注意事项
运维·数据库·redis
IT规划师1 天前
Redis 核心机制 | 发布订阅:Pub_Sub 与 Sharded PubSub
redis·.net
Flynn Liang2 天前
AI Agent Redis 生产踩坑实录:13 类故障的根因、复现与调优
数据库·人工智能·redis·缓存·ai agent·故障分析
Flynn Liang2 天前
RAG 检索性能提升:Redis 向量 + 全文 + 元数据过滤的混合检索实战
数据库·人工智能·redis·缓存·rag·ai agent·智能体
zhoulcc3 天前
Redis 写命令报 MISCONF 错误?RDB 持久化失败的根因定位与彻底修复
redis·持久化·故障排查·rdb·misconf