首页 > 其他 > 详细

监控服务器配置(五)-----Redis_exporter安装配置

时间:2019-04-13 14:58:24      阅读:190      评论:0      收藏:0      [点我收藏+]

1.下载redis_exporter安装包(linux版)到 /opt/minitor/redis_exporter 。

下载地址:https://download.csdn.net/download/a15565772151/11111943

可以私聊我一下我发你资源

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 ip:端口 -redis.password "密码" &  

5.去prometheus中查看redis的状态

技术分享图片

6.在grafana中查看配置状态(推荐使用763)

技术分享图片

7.效果图如下:

技术分享图片

 

监控服务器配置(五)-----Redis_exporter安装配置

原文:https://www.cnblogs.com/cui0614/p/10701078.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!