You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Ankur Khanna <an...@oracle.com> on 2021/09/29 08:11:46 UTC

How to enable metrics2 sink to kafka

Hi Community,

What configuration do I need to enable metrics2 sink into a kafka broker?

I tried with the following properties in Hadoop-metrics2.properties :

*.sink.kafka.broker_list = kafka-broker-1-hostname:9092
*.sink.kafka.class = org.apache.hadoop.metrics2.sink.KafkaSink
*.sink.kafka.period = 2
*.sink.kafka.topic = hadoop_metrics

However, with above properties in place, I still do not see the metrics being written into the topic.
Please suggest what else I may need to add/modify.

Best,
Ankur Khanna