prometheus 监控 redis + rabbitmq
1.安装部署
1.1 wget https://github.com/oliver006/redis_exporter/releases/download/v0.15.0/redis_exporter-v0.15.0.linux-amd64.tar.gz 1.2 cd /prometheus_exporters 1.3 ./redis_exporter redis//localhost:6379 & -web.listenaddress 0.0.0.0:9121
1.4 由密码 ./redis_exporter -redis.addr 11.25.124.11:6380 -redis.password JwodQPFshiPCFqC4sb#9 -web.listen-address 0.0.0.0:50001 &
参考:http://www.eryajf.net/2497.html
2.配置prometheus.yml 加入
- job_name: redis_exporter static_configs: - targets: ['192.168.0.17:9121']
3.dashboard 2751
参考:https://www.cnblogs.com/jugglee/p/8392015.html
------------------------------------------------------------------------------
1.装包
tar xf rabbitmq_exporter-0.29.0.linux-amd64.tar.gz -C /opt/ cd /opt/rabbitmq_exporter-0.29.0.linux-amd64
2.起服务
RABBIT_USER=admin RABBIT_PASSWORD=admin OUTPUT_FORMAT=JSON PUBLISH_ADDR=192.168.1.2 PUBLISH_PORT=50001 RABBIT_URL=http://10.253.124.67:5672 nohup ./rabbitmq_exporter >/dev/null 2>&1 &
netstat -tnlp|grep 50001
https://github.com/kbudde/rabbitmq_exporter/
3.prometheus的配置
- job_name: rabbitmq static_configs: - targets: ['192.168.1.161:9099'] labels: instance: rabbit9099161
用一个例子来演示会更加清晰