监控Redis运行状态:Redis Exporter
2021/8/18 19:07:52
本文主要是介绍监控Redis运行状态:Redis Exporter,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
参考:
https://www.prometheus.wang/exporter/use-promethues-monitor-redis.html
https://github.com/oliver006/redis_exporter
https://grafana.com/grafana/dashboards/763
https://github.com/oliver006/redis_exporter/blob/master/contrib/grafana_prometheus_redis_dashboard.json
https://hub.docker.com/r/oliver006/redis_exporter/
https://github.com/oliver006/redis_exporter/blob/master/contrib/k8s-redis-and-exporter-deployment.yaml
这里使用二进制部署启动Redis以及Redis Exporter,具体安装细节就不做重复了
mkdir /data/redis_exporter sudo wget https://github.com/oliver006/redis_exporter/releases/download/v1.3.2/redis_exporter-v1.3.2.linux-amd64.tar.gz tar -xvf redis_exporter-v1.3.2.linux-amd64.tar.gz mv redis_exporter-v1.3.2.linux-amd64 /data/redis_exporter wget https://grafana.com/api/dashboards/763/revisions/1/download ## 无密码 ./redis_exporter redis//172.26.42.229:6379 ## 有密码 ./redis_exporter -redis.addr 172.26.42.229:6379 -redis.password 123456 cat > /etc/systemd/system/redis_exporter.service <<EOF [Unit] Description=redis_exporter After=network.target [Service] Type=simple User=prometheus ExecStart=/data/redis_exporter/redis_exporter -redis.addr 172.26.42.229:6379 -redis.password 123456 Restart=on-failure [Install] WantedBy=multi-user.target EOF - job_name: redis static_configs: - targets: ['172.26.42.229:9121'] labels: instance: redis120
这篇关于监控Redis运行状态:Redis Exporter的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-08阿里云Redis项目实战入门教程
- 2024-11-08阿里云Redis资料:新手入门与初级使用指南
- 2024-11-08阿里云Redis教程:新手入门及实用指南
- 2024-11-07阿里云Redis学习入门:新手必读指南
- 2024-11-07阿里云Redis学习入门:从零开始的操作指南
- 2024-11-07阿里云Redis学习:初学者指南
- 2024-11-06阿里云Redis入门教程:轻松搭建与使用指南
- 2024-11-02Redis项目实战:新手入门教程
- 2024-10-22Redis入门教程:轻松掌握数据存储与操作
- 2024-10-22Redis缓存入门教程:快速掌握Redis缓存基础知识