赞
踩
kafka_exporter监控kafka指定 topic
wget https://github.com/danielqsj/kafka_exporter/releases/download/v1.6.0/kafka_exporter-1.6.0.illumos-amd64.tar.gz
tar xf kafka_exporter-1.6.0.illumos-amd64.tar.gz -C /usr/local/
cd /usr/local/kafka_exporter-1.6.0
nohup /usr/local/kafka_exporter/kafka_exporter --web.listen-address=:9308 --web.
telemetry-path=/metrics --kafka.server=kafkaIP:9092 --zookeeper.server=zookeeperIP:2181 --topic.filter=topicname &
- job_name: 'prod_kafka_topic_topicname'
static_configs:
- targets: ['192.168.1.21:9308']
热加载需要开启参数-web.enable-lifecycle
curl -XPOST http://10.140.20.200:9090/-/reload
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。