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

相关推荐
foxbillcsdn2 小时前
《Redis应用实例》Java实现(28):栈
java·redis
星辰_mya4 小时前
亲爱的redis你好
redis
驾驭人生7 小时前
Docker中安装 redis、rabbitmq、MySQL、es、 mongodb设置用户名密码
redis·docker·rabbitmq
laplace01239 小时前
JAVA-Redis上
java·redis·spring
芒果要切9 小时前
Redis 使用场景
数据库·redis·缓存
小雨的光9 小时前
QuickRedis
spring boot·redis
whltaoin13 小时前
【JAVA全栈项目】弧图图-智能图床SpringBoot+MySQL API接口结合Redis+Caffeine多级缓存实践解析
java·redis·spring·缓存·caffeine·多级缓存
EllenShen12313 小时前
(Azure)PGSQL和redis 连通性测试 --code 备份
redis·postgresql·azure
2401_8370885020 小时前
stringRedisTemplate.opsForHash().entries
java·redis
爱敲键盘的猴子1 天前
Redis内存回收,缓存问题
redis