prometheus+grafana监控系统汇总

各种攻略以及实践汇总-----丐中丐中丐版本

https://www.cnblogs.com/duanxz/p/10179941.html
汇总安装
https://www.jianshu.com/p/dfd6ba5206dc
热加载
curl -X POST http://192.168.10.37:9090/-/reload

harbor.fenglincloud.com/operations/prometheus:1
docker pull harbor.fenglincloud.com/operations/prometheus:v1
---------------------------------------------------------------------------------------------------
redis:
------------------------------------------------------
数据采集地址:
http://192.168.10.37:9121/metrics dev
http://192.168.10.37:9122/metrics qa
------------------------------------------------------
数据采集安装方法:

https://www.cnblogs.com/tchua/p/11427917.html
https://www.cnblogs.com/Qing-840/p/10145202.html
---docker安装
docker run -d --name redis_exporter -p 9121:9121 oliver006/redis_exporter --redis.addr redis:192.168.10.55:6379 --redis.addr redis:192.168.10.36:6379

tar -zxvf mongodb_exporter-linux-amd64 -C /root/mongo_exporter

https://blog.csdn.net/finghting321/article/details/107950613
---下载安装(附带集群方式)

#curl -X PUT http://127.0.0.1:8500/v1/agent/service/deregister/redis-xxx
如果要删除,执行这个(偶尔获得,目的不明,待探索)
------------------------------------------------------
数据采集安装途径:可放置其他节点,下载redis数据采集节点文件,配置下redis连接方式,直接安装
------------------------------------------------------
gra编号:763
---------------------------------------------------------------------------------------------------

mongodb:

数据采集地址:
192.168.10.55:9216
192.168.10.36:9216

数据采集安装途径:docker-compose 未成功
使用单独安装方式:

docker run -d --name devmongodb_exporter -p 9107:9104 elarasu/mongodb_exporter --mongodb.uri mongodb://dev-mongo.host:27017
docker run -d --name qamongodb_exporter -p 9106:9104 elarasu/mongodb_exporter --mongodb.uri mongodb://qa-mongo.host:27017
-----失败

./mongodb_exporter -mongodb.uri mongodb://dev-mongo.host:27017
-----失败

nohup ./mongodb_exporter --mongodb.uri=qa-mongo.host:27017 &
-----成功

数据采集安装方法:
https://blog.csdn.net/qq_28804275/article/details/86579788?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control
---docker-compose安装

https://blog.csdn.net/weixin_45697805/article/details/107408271?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control
----节点安装成功

gra编号:2583
---------------------------------------------------------------------------------------------------

mysql:
数据采集地址:
192.168.10.36:9104
192.168.10.55:9104

数据采集安装途径:
docker-compose安装

数据采集安装方法:
docker-compose安装
dev-mysql-exporter:
image: prom/mysqld-exporter
container_name: dev-mysql-exporter
hostname: mysql-exporter
restart: always
ports:
- "9104:9104"
networks:
- monitor
environment:
DATA_SOURCE_NAME: "root:root123@(192.168.10.37:3306)/"

gra编号:7362
---------------------------------------------------------------------------------------------------
rabbitmq:
数据采集地址:
192.168.10.36:9099
192.168.10.36:9099

安装途径:
直接安装

安装节点
192.168.10.36
192.168.10.55

安装方法:
RABBIT_USER=admin RABBIT_PASSWORD=admin OUTPUT_FORMAT=JSON PUBLISH_PORT=9099 RABBIT_URL=http://192.168.10.36:15672 nohup ./rabbitmq_exporter &

教程地址:
https://blog.csdn.net/qq_28497655/article/details/80240110

gra编号:2121

---------------------------------------------------------------------------------------------------

spring:
数据采集地址:兴哥jar包,宿主机执行自动任务,持续刷新
安装途径:jar包运行
安装方法:jar包运行
gra编号:4701

---------------------------------------------------------------------------------------------------

node:
数据采集地址:
192.168.10.37.9100

安装途径:docker-compose

安装方法:
node-exporter:
image: quay.io/prometheus/node-exporter
container_name: node-exporter
hostname: node-exporter
restart: always
ports:
- "9100:9100"
networks:
- monitor

gra编号:8919

---------------------------------------------------------------------------------------------------
nginx:
数据采集地址:
安装途径:
安装方法:
gra编号:9614

---------------------------------------------------------------------------------------------------

点赞

发表评论

昵称和uid可以选填一个,填邮箱必填(留言回复后将会发邮件给你)
tips:输入uid可以快速获得你的昵称和头像

Title - Artist
0:00