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
posted @ 2019-07-29 19:15  M1927  阅读(336)  评论(0编辑  收藏  举报