redis_exporter监控不同IP不同密码Redis多实例
启动
nohup ./redis_exporter -web.listen-address :9121 -redis.addr x.x.x.1:6377 -redis.password password1 &
nohup ./redis_exporter -web.listen-address :9122 -redis.addr x.x.x.1:6378 -redis.password password2 &
nohup ./redis_exporter -web.listen-address :9123 -redis.addr x.x.x.2:6379 -redis.password password3 &
======== prometheus.yml
- job_name: 'redis_check'
metrics_path: /metrics
file_sd_configs:
- files:
- 'instances/ins_redis.yml'
refresh_interval: 1m
============ ins_redis.yml
- labels:
env: test
idc: test
system_type: linux75
targets:
- x.x.x.1:9121
- x.x.x.1:9122
- x.x.x.2:9123
================# 水平有限 欢迎指正 #=================