MetricBeat监控Redis

本文涉及的产品
云数据库 Redis 版,社区版 2GB
推荐场景:
搭建游戏排行榜
简介: MetricBeat监控Redis



一、安装部署

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

二、开启Redis监控模块

进入metricbeat安装目录

./metricbeat modules enable redis

三、编辑Redis配置文件

vim modules.d/redis.yml
# 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

nohup ./metricbeat -e  > ./metricbeat.log 2>&1 &

五、查看监控图表

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

相关实践学习
基于Redis实现在线游戏积分排行榜
本场景将介绍如何基于Redis数据库实现在线游戏中的游戏玩家积分排行榜功能。
云数据库 Redis 版使用教程
云数据库Redis版是兼容Redis协议标准的、提供持久化的内存数据库服务,基于高可靠双机热备架构及可无缝扩展的集群架构,满足高读写性能场景及容量需弹性变配的业务需求。 产品详情:https://www.aliyun.com/product/kvstore     ------------------------------------------------------------------------- 阿里云数据库体验:数据库上云实战 开发者云会免费提供一台带自建MySQL的源数据库 ECS 实例和一台目标数据库 RDS实例。跟着指引,您可以一步步实现将ECS自建数据库迁移到目标数据库RDS。 点击下方链接,领取免费ECS&RDS资源,30分钟完成数据库上云实战!https://developer.aliyun.com/adc/scenario/51eefbd1894e42f6bb9acacadd3f9121?spm=a2c6h.13788135.J_3257954370.9.4ba85f24utseFl
相关文章
|
2月前
|
缓存 监控 NoSQL
Redis 的监控指标
Redis 的监控指标
25 0
|
3月前
|
监控 NoSQL Redis
HeartBeat监控Redis状态
HeartBeat监控Redis状态
|
6月前
|
监控 NoSQL Redis
【Redis 系列】redis 学习六,redis 事务处理和监控事务
【Redis 系列】redis 学习六,redis 事务处理和监控事务
|
9月前
|
人工智能 监控 NoSQL
Redis监控利器---Redis State
Redis监控利器---Redis State
102 1
|
6月前
|
监控 NoSQL Redis
Redis监控数据分布工具Redis-audit 使用总结
Redis监控数据分布工具Redis-audit 使用总结
52 0
|
6月前
|
监控 NoSQL Redis
Redis监控方案
Redis监控方案
106 0
|
12月前
|
监控 NoSQL Redis
redis集群部署,结合sentinel监控
redis集群部署,结合sentinel监控
137 0
|
12月前
|
缓存 监控 NoSQL
Redis-11使用 watch 命令监控事务
Redis-11使用 watch 命令监控事务
86 0
|
12月前
|
存储 缓存 监控
Redis监控步骤get!Google精髓的四大法则直接掌握
Redis也是对外服务,所以Google四个黄金指标同样适用,还从延迟、流量、错误、饱和度分析Redis关键指标。
158 0
|
Web App开发 监控 NoSQL