当前位置:网站首页>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])
边栏推荐
- 我来图书馆小程序签到流程分析
- 【2021】【论文笔记】红外及THz下的细胞膜生物效应——效应是现象,作用是机理——THz对医学的好处
- 3. Upload the avatar to qiniu cloud and display it
- opengauss如何手工安装(非OM方式)
- DialogRPT-Dialog Ranking Pretrained Transformers
- I came to the library applet check-in process analysis
- (CVPR 2019) GSPN: Generative Shape Proposal Network for 3D Instance Segmentation in Point Cloud
- Why does the debugger display the wrong function
- The slow loading of the first entry page of vite local operation
- Relationship between HTC mobile official solution, s-on/s-off and super CID
猜你喜欢

图解B+树的插入过程
![Web3.0 blog DAPP development practice [2022]](/img/18/f386246ff6ffbd0a42df57c3cd9170.png)
Web3.0 blog DAPP development practice [2022]

增删改查业务的快速上手
![[xxl-job] xxl-job learning](/img/2c/d3872983e4228a3ef52a9d1bef836e.png)
[xxl-job] xxl-job learning

The slow loading of the first entry page of vite local operation

1. Mx6ul core module use serialization - view system information (II)

I.MX6UL核心模块使用连载-触摸屏校准 (九)

2. Login - verification code function and saving login status

商业智能BI全解析,探寻BI本质与发展趋势

Navica工具把远程MySQL导入到本地MySQL数据库
随机推荐
2022.7.25-----leetcode.919
Ggplot2 learning summary
阿里云Redis开发规范
I.MX6UL核心模块使用连载-USB接口测试 (六)
【红队】ATT&CK - 利用BITS服务实现持久化
Composition API的优势
【2021】【论文笔记】红外及THz下的细胞膜生物效应——效应是现象,作用是机理——THz对医学的好处
LeetCode302场周赛第三题--裁剪数字后查询第 K 小的数字
Make and makefile summary II
BigDecimal use
一款可插拔的AM335X工控模块板载wifi模块
Error reporting caused by local warehouse
1. Mx6ul core module use serial -rs485 test (x)
[xxl-job] xxl-job learning
Web3.0 blog DAPP development practice [2022]
Implementation of C iterator
The slow loading of the first entry page of vite local operation
Quick start of adding, deleting, modifying and checking business
Worthington papain - production of glycopeptides from purified proteoglycans (attached Literature)
[2019] [paper notes] tunable THz broadband absorption based on metamaterials——