prometheus监控rabbitmq集群
2020-06-06 本文已影响0人
小黑佬
信息
prometheus v2.1.0
rabbitmq_exporter 1.0.0
rabbitmq 3.6.9 集群 3台组成
prometheus.yml
添加如下job,分别对应你的三台rabbitmq地址
- job_name: 'rabbitmq'
static_configs:
- targets: ['172.16.0.128:9419']
- targets: ['172.16.0.123:9419']
- targets: ['172.16.0.124:9419']
部署rabbitmq_exporter
目录结构如下
tree
.
├── config.example.json
├── LICENSE
└── rabbitmq_exporter
vim 一个config.example.json文件
#config.example.json
{
"rabbit_url": "http://127.0.0.1:15672",
"rabbit_user": "admin",
"rabbit_pass": "123456",
"publish_port": "9419",
"publish_addr": "",
"output_format": "TTY",
"exlude_metrics": [],
"include_queues": ".*",
"skip_queues": "^$",
"skip_vhost": "^$",
"include_vhost": ".*",
"rabbit_capabilities": "no_sort,bert",
"enabled_exporters": [
"exchange",
"node",
"overview",
"queue"
],
"timeout": 30,
"max_queues": 0
}
#启动程序rabbitmq_exporter
cd /usr/local/src/rabbitmq_exporter-1.0.0-RC7.linux-amd64
nohup ./rabbitmq_exporter -config-file config.example.json >/dev/null 2>&1 &
模板
4371 和4279
image.png