当前位置:网站首页>Prometheus + redis exporter + grafana monitor redis service
Prometheus + redis exporter + grafana monitor redis service
2022-07-26 02:14:00 【Work hard, work hard】
prometheus Configuration file modification
cat /data/prometheus/prometheus.yml
- job_name: redis_exporter
static_configs:
- targets: ['zunshang:9121','luodiyezhu:9122','luodiyebei:9121','guojing:9121','dingdan:9121','guanggao:9121']
relabel_configs:
- source_labels: [ "__address__" ]
regex: "(.*):(.*)"
target_label: "instance"
replacement: $1
Deploy redis-exporter Check my other articles , This process is not exhaustive .
Reload prometheus The configuration file 
grafana Monitoring configuration

redis-exporter Query details
- Inquire about redis Instance memory usage
100 * (redis_memory_used_bytes{
instance=~"$node"} / redis_config_maxmemory{
instance=~"$node"} )
redis_memory_used_bytes: redis Bytes used
redis_config_maxmemory: redis The maximum memory bytes used in the configuration file ( Give memory configuration according to the memory size of the server ) The default is 0 There is no limit to
redis Instance memory usage : Use memory space / redis Maximum memory space of configuration file if 0 That's infinity
- Query client connection redis Number of instances
redis_connected_clients{
instance=~"$node"}
- perform redis The rate of commands
irate(redis_commands_processed_total{
instance=~"$node"}[5m])
- redis Command and miss rate
A irate(redis_keyspace_hits_total{
instance=~"$node"}[5m]) hit
B irate(redis_keyspace_misses_total{
instance=~"$node"}[5m]) Not hit
- redis All libraries in key Total of
sum (redis_db_keys{
instance=~"$node"}) by (instance)
- redis Permanent in Library key The number of
sum(redis_db_keys{
instance=~"$node"})by (instance) - sum(redis_db_keys_expiring{
instance=~"$node"}) by (instance)
- redis There is an expiration time in key The number of
sum(redis_db_keys_expiring{
instance=~"$node"}) by (instance)
- Be overdue keys Rate
rate(redis_expired_keys_total{
instance=~"$node"}[5m])
边栏推荐
- I came to the library applet check-in process analysis
- (CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud
- 【2019】【论文笔记】基于超材料可调谐THz宽频吸收——
- National standard gb28181 protocol video platform easygbs message pop-up mode optimization
- Implementation of C iterator
- Basic usage of set, map, DOM classlist in ES6
- 记录之目标检测NMS(非极大值抑制)
- Ti AM335X工控模块矩阵键盘电路的设计与驱动移植
- I.MX6UL核心模块使用连载-WIFI测试 (八)
- 1. Mx6ul core module uses serial EMMC read / write test (IV)
猜你喜欢

Activiti workflow gateway

I.MX6UL核心模块使用连载-RTC测试 (十二)

1. Mx6ul core module serial WiFi test (VIII)

【2021】【论文笔记】6G技术愿景——OTFS调制技术

(CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud

Bitmap这个“内存刺客”你要小心~

How to choose cloud note tool? What can I do with cloud notes?

Sqlyog data import and export graphic tutorial

I.MX6UL核心模块使用连载-TF卡读写测试 (五)
![[2020] [paper notes] growth of bi2te3/cofeb double-layer heterojunction by magnetron sputtering——](/img/5d/7d26e2d0d832c95e1cc011995ce774.png)
[2020] [paper notes] growth of bi2te3/cofeb double-layer heterojunction by magnetron sputtering——
随机推荐
Dqn pytoch example
Postman报Json序列化错误
Why does the debugger display the wrong function
微信小程序解密并拆包获取源码教程
【LeetCode】32、 最长有效括号
Master-slave replication in MySQL
博云容器云、DevOps 平台斩获可信云“技术最佳实践奖”
数仓:银行业数仓的分层架构实践
由一个数据增量处理问题看到技术人员的意识差距
Binary logs in MySQL
[2020] [paper notes] growth of bi2te3/cofeb double-layer heterojunction by magnetron sputtering——
c# 单元测试
1. Mx6ul core module serial USB interface test (VI)
(CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud
Adruino 基础实验学习(一)
I.MX6UL核心模块使用连载-Iot-6ULX核心模块简要介绍 (一)
1205 Lock wait timeout exceeded; Try restarting transaction processing
力扣148:排序链表
Leetcode algorithm 147. insert and sort the linked list
I.MX6UL核心模块使用连载-eMMC读写测试 (四)