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,即可看到相关图表。

相关推荐
字节探索2 小时前
Redis 分布式锁:从 SETNX 误删到看门狗自动续期的原理与实践
redis·分布式
真上帝的左手3 小时前
30. 技术专题-‌应用框架组件-缓存-Redis
数据库·redis·分布式·缓存·中间件
bksczm4 小时前
C++Redis开发(Ubuntu 22.04)
数据库·redis·缓存
goehou4 小时前
缓存该删还是该改,LLM 服务里的双写问题
redis·缓存·llm·一致性·系统设计
余槐i4 小时前
Spring Boot 3.2 偶发500无日志:线程池复用导致请求上下文丢失
spring boot·redis·后端·mysql·性能优化
IT规划师5 小时前
Redis 数据类型全解 - ZSet:两个编码,七种玩法(五)
redis·.net
我不会起名字32215 小时前
Redis 从 0 到 1(十七):订单 30 分钟不支付自动关闭——ZSet 延迟队列 Go 实现
redis·go·延迟队列·zset·订单
利威尔xu16 小时前
Go IM 源码实战(13):30 个会话只有 2 个红点,未读数错在三条路径
redis·后端·微服务·面试·golang
will_net18 小时前
Redis集群部署+Redis 链接地址放入Aollo +c#项目接入Redis
redis·c#·bootstrap