当前位置:网站首页>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])
边栏推荐
- Advantages of composition API
- Binary logs in MySQL
- [C language brush leetcode] 1462. curriculum IV (m)
- ggplot2学习总结
- i.MX6ULL SNVS电源域GPIO状态保持验证
- 1. Mx6ul core module uses serial NAND FLASH read / write test (III)
- I.MX6UL核心模块使用连载-RTC测试 (十二)
- [pyqt5 packaged as exe]
- 1. Mx6ul core module use serialization - view system information (II)
- 1. Mx6ul core module uses serial EMMC read / write test (IV)
猜你喜欢

增删改查业务的快速上手

I.MX6UL核心模块使用连载-Iot-6ULX核心模块简要介绍 (一)

The slow loading of the first entry page of vite local operation
![[2019] [paper notes] tunable THz broadband absorption based on metamaterials——](/img/ae/bbebba30d0d6f58d65531cff48b5e9.png)
[2019] [paper notes] tunable THz broadband absorption based on metamaterials——

TCP三次握手四次挥手

Worthington papain - production of glycopeptides from purified proteoglycans (attached Literature)

Composition API的优势

Acwing 379. hide and seek problem solution (minimum path non repeating point coverage)

2. Login - verification code function and saving login status
![[cloud native] 4.1 Devops foundation and Practice](/img/09/5423540d0a4a11bc7162c5ab343a4d.png)
[cloud native] 4.1 Devops foundation and Practice
随机推荐
Business Intelligence BI full analysis, explore the essence and development trend of Bi
Sqlyog data import and export graphic tutorial
Ggplot2 learning summary
BigDecimal use
Monitoring of debezium synchronization debezium
Basic usage of set, map, DOM classlist in ES6
由一个数据增量处理问题看到技术人员的意识差距
Ti AM335X工控模块矩阵键盘电路的设计与驱动移植
【2020】【论文笔记】磁控溅射法生长Bi2Te3/CoFeB双层异质结——
数仓:浅谈银行业的数仓构建实践
The third question of leetcode 302 weekly Games -- query the number with the smallest k after cutting the number
2. Login - verification code function and saving login status
一款可插拔的AM335X工控模块板载wifi模块
prometheus+process-exporter+grafana 监控进程的资源使用
微信小程序解密并拆包获取源码教程
LeetCode_动态规划_中等_264.丑数 II
DQN Pytorch示例
Characteristics and determination of neuraminidase from Clostridium perfringens in Worthington
Binary logs in MySQL
Design and driver transplantation of matrix keyboard circuit of Ti am335x industrial control module