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