Grafana Prometheus系統監控Redis服務

1、Grafana Prometheus系統監控Redis服務

1.1流程

collectd/telegraf或prometheus插件(收集數據) ——-> influxdb/prometheus(保存數據) ——-> grafana(顯示數據)linux

1.2安裝redis_exporter

下載redis_exporter插件
代理插件不必定非要安裝在redis端git

wget https://github.com/oliver006/redis_exporter/releases/download/v0.30.0/redis_exporter-v0.30.0.linux-amd64.tar.gz

解壓github

tar xf redis_exporter-v0.30.0.linux-amd64.tar.gz

啓動redis_exporter登錄redisweb

## 無密碼
nohup ./redis_exporter -redis.addr 192.168.1.120:6379 &
## 有密碼
nohup ./redis_exporter  -redis.addr 192.168.1.120:6379  -redis.password 123456

查看redis_exporte是否開啓redis

netstat -lntp
tcp6       0      0 :::9121               :::*              LISTEN      32407/redis_exporte

1.3配置prometheus

修改prometheus配置文件bash

- job_name: 'redis'
   static_configs:
   - targets:
     - "localhost:9121"   #redis_exporte在哪臺服務器啓動的就填哪臺服務器ip

重啓prometheus服務器

nohup ./prometheus --config.file=./prometheus.yml &

1.4grafana配置

配置prometheus數據源
添加prometheus插件,而後配置
在這裏插入圖片描述markdown

1.5下載redis儀表盤模板

在這裏插入圖片描述

1.6轉載原文連接

第一部分做者: LuTao
第一部分連接: http://lutao.tk/grafana+prometheus監控redis/tcp

2、搭建相關博文

Grafana Prometheus系統監控Redis服務ide

阿里雲:小柒2012 :監控系統

  1. Grafana+Prometheus打造全方位立體監控系統
  2. Grafana+Prometheus系統監控之釘釘報警功能
  3. Grafana+Prometheus系統監控之Redis
  4. Grafana+Prometheus系統監控之MySql
  5. Grafana+Prometheus系統監控之webhook
  6. Consul+Prometheus系統監控之註冊發現
相關文章
相關標籤/搜索