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

相关推荐
SoleMotive.1 天前
如果用户反映页面跳转得非常慢,该如何排查
jvm·数据库·redis·算法·缓存
e***19351 天前
docker compose安装redis
redis·docker·容器
v***16021 天前
Linux安装Redis以及Redis三种启动方式
linux·redis·bootstrap
时光追逐者1 天前
分享5款.NET开源免费的Redis客户端组件库
数据库·redis·开源·c#·.net·.net core
e***58231 天前
Linux部署Redis集群
linux·运维·redis
s***87271 天前
linux centos8 安装redis 卸载redis
linux·运维·redis
0***v7771 天前
redis批量删除namespace下的数据
数据库·redis·缓存
i***68321 天前
PHP操作redis
开发语言·redis·php
r***01381 天前
linux上redis升级
linux·运维·redis