Redis_exporter安装配置

一、什么是Redis_exporter?

  用于Redis指标的Prometheus导出器。

二、如何安装Redis_exporter?

1.下载redis_exporter安装包(linux版)到 /opt/minitor/redis_exporter 。
 
 
2.运行 tar -zxvf redis_exporter-v0.13.linux-amd64.tar.gz ,解压文件到当前目录。
 
3.执行 vim /opt/minitor/prometheus/prometheus.yml,添加以下配置文件(红色部分):
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'prometheus'
 
    # metrics_path defaults to '/metrics'
    # scheme defaults to 'http'.
 
    static_configs:
      - targets: ['ip:9090']
        labels:
          instance: prometheus
  - job_name: redis
    static_configs:
      - targets: ['ip:9121']
        labels:
          instance: redis
 
4.启动 redis_exporter
nohup ./redis_exporter -redis.addr 10.32.0.72:6379 -redis.password "ruiyiTest" &   
 
5.在prometheus界面中查看redis的状态
 
 
6.在grafana中查看配置状态(推荐使用763)
 
7.效果图如下:
posted @ 2020-11-09 22:46  Fire♪一度  阅读(2285)  评论(0编辑  收藏  举报