简体   繁体   English

如何要求kafka经纪人向我们发送其指标?

[英]how to ask a kafka broker to send us its metrics?

We are going to replace our Activemq broker with Kafka broker. 我们将用Kafka经纪人替换Activemq经纪人。 In activemq we could send a message to it so that it sends us its queues' metrics. 在activemq中,我们可以向它发送一条消息,以便它向我们发送其队列指标。 But I can't find a way in kafka to ask for its topic metrics. 但是我在kafka中找不到一种方法来询问其主题指标。 Can someone help me? 有人能帮我吗?

Kafka metrics are of 3 types. 卡夫卡指标有3种类型。

  1. Kafka Server (Broker) metrics Kafka服务器(代理)指标
  2. Producer metrics 生产者指标
  3. Consumer metrics 消费者指标

You can collect Kafka metrics using JMX ( https://github.com/jmxtrans/jmxtrans ). 您可以使用JMX( https://github.com/jmxtrans/jmxtrans )收集Kafka指标。

For more information on collecting the metrics and monitoring those via a dashboard, read the following link, https://softwaremill.com/monitoring-apache-kafka-with-influxdb-grafana/ 有关收集指标并通过仪表板进行监控的更多信息,请阅读以下链接, https://softwaremill.com/monitoring-apache-kafka-with-influxdb-grafana/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM