redis启动没反应_Promethues如何针对Redis进行监控
生活随笔
收集整理的這篇文章主要介紹了
redis启动没反应_Promethues如何针对Redis进行监控
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
需求:采用redis_exporter 收集數據,promethus采集redis_exporter數據,granfana展示數據
一、簡易安裝redis
yum install -y redisrpm -qa |grep redislsof -i :6379rpm -ql redissystemctl start redis- 找到配置文件/etc/redis.conf,修改 requirepass QpMD61xo
- 重啟動redis systemctl restart redis
二、下載redis_exporter 收集redis數據
wget https://github.com/oliver006/redis_exporter/releases/download/v1.4.0/redis_exporter-v1.4.0.linux-amd64.tar.gztar zxvf redis_exporter-v1.4.0.linux-amd64.tar.gzmv redis_exporter-v1.4.0.linux-amd64 /usr/local/exporter/redis_exportercd /usr/local/exporter/redis_exporter## 有密碼nohup ./redis_exporter -redis.addr 127.0.0.1:6379 -redis.password QpMD61xo ## 無密碼nohup ./redis_exporter -redis.addr 192.168.1.120:6379 &- 日志信息
- 查看redis_exporte是否開啟 lsof -i:9121
三、配置promethus 采集數據
- 修改prometheus配置文件 vim /usr/local/prometheus/prometheus.yml
- 重載配置文件
四、granfna配置
- 配置prometheus數據源,添加prometheus插件,導入763模板 https://grafana.com/grafana/dashboards/763/revisions
注意 redis 添加密碼后,一定要重啟動redis服務,否則granfna獲取不到數據。(折騰了半天沒數據。。)
總結
以上是生活随笔為你收集整理的redis启动没反应_Promethues如何针对Redis进行监控的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python运动目标检测与跟踪_基于Op
- 下一篇: idea启动tomcat没有加载项目_震