代理插件不一定非要安装在redis端
wget https://github.com/oliver006/redis_exporter/releases/download/v0.30.0/redis_exporter-v0.30.0.linux-amd64.tar.gz
tar xf redis_exporter-v0.30.0.linux-amd64.tar.gz
## 无密码
nohup ./redis_exporter -redis.addr 192.168.1.120:6379 &
## 有密码
nohup ./redis_exporter -redis.addr 192.168.1.120:6379 -redis.password 123456
netstat -lntp
tcp6 0 0 :::9121 :::* LISTEN 32407/redis_exporte
vim prometheus.yml
- job_name: 'redis'
static_configs:
- targets:
- "localhost:9121" #redis_exporte在哪台服务器启动的就填哪台服务器ip
nohup ./prometheus --config.file=./prometheus.yml &
配置prometheus数据源
添加prometheus插件,然后配置
?https://grafana.com/dashboards/763/revisions
https://github.com/oliver006/redis_exporter?spm=a2c4e.11153940.blogcont251478.18.6156d4895PIlpc
原文:https://www.cnblogs.com/zeq912/p/10614019.html