我已经运行ZooKeeper和单个Kafka代理,我想用MetricBeat获取指标,使用ElasticSearch对其进行索引,并使用Kibana进行显示。MetricBeat - Kafka的consumergroup度量集不会发送任何数据?
但是,MetricBeat只能从partition
度量集中获取数据,而没有任何来自consumergroup
度量集。
由于kafka
模块被定义为metricbeat.yml
期刊,它应该发送它自己的一些数据,而不仅仅是等待用户的交互(f.exam - 写主题)? 为了确保自己,我试图创建消费者群体,按主题编写和消费,但仍然没有收集到consumergroup
度量标准的数据。
consumergroup
在metricbeat.template.json
和metricbeat.template-es2x.json
两者中定义。
虽然metricbeat.full.yml
完全注释了,这是我的metricbeat.yml
卡夫卡模块定义:
- module: kafka
metricsets: ["partition", "consumergroup"]
enabled: true
period: 10s
hosts: ["localhost:9092"]
client_id: metricbeat1
retries: 3
backoff: 250ms
topics: []
在/logs
目录MetricBeat的,像这样的线路显示:
INFO Non-zero metrics in the last 30s:
libbeat.es.published_and_acked_events=109
libbeat.es.publish.write_bytes=88050
libbeat.publisher.messages_in_worker_queues=109
libbeat.es.call_count.PublishEvents=5
fetches.kafka-partition.events=106
fetches.kafka-consumergroup.success=2
libbeat.publisher.published_events=109
libbeat.es.publish.read_bytes=2701
fetches.kafka-partition.success=2
fetches.zookeeper-mntr.events=3
fetches.zookeeper-mntr.success=3
随着动物园管理员的mntr
和卡夫卡partition
,我可以看到events=
和success=
的值,但对于consumergroup
只有success
。看起来没有事件被解雇。
partition
和mntr
数据在Kibana中正确显示,而consumergroup
丢失。
存储在ElasticSearch中的数据无法用人眼看到,有一些用于目录名称的内部字符串,并且日志不包含任何有用的信息。
任何人都可以帮助我理解正在发生的事情并解决它(可能MetricBeat)发送数据到ElasticSearch?谢谢:)
同样的问题对我来说 – baz