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.效果图如下:


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM