Is looks like a bug, whatever you set as value for kafka.metrics.reporters ,
it's overridden by ambari agent
/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1.2.2/package/scripts/kafka.py:57
kafka_server_config['kafka.metrics.reporters'] =
params.kafka_metrics_reporters
?
As a hack , you can try to set your value in params.py on all hosts
/var/lib/ambari-agent/cache/common-services/KAFKA/0.8.1.2.2/package/scripts/params.py:103
kafka_metrics_reporters = kafka_metrics_reporters +
"org.apache.hadoop.metrics2.sink.kafka.KafkaTimelineMetricsReporter"
?
________________________________
From: Alejandro Fernandez <[email protected]>
Sent: Wednesday, September 23, 2015 6:32 PM
To: [email protected]; Sriharsha Chintalapani; [email protected]
Subject: Re: Couldn't change value of kafka.metrics.reporters
From: Alejandro Fernandez
<[email protected]<mailto:[email protected]>>
Date: Wednesday, September 23, 2015 at 8:32 AM
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>, Sriharsha Chintalapani
<[email protected]<mailto:[email protected]>>
Subject: Re: Couldn't change value of kafka.metrics.reporters
cc Sriharsha
From: Darwin Wirawan <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Date: Wednesday, September 23, 2015 at 1:20 AM
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: Couldn't change value of kafka.metrics.reporters
Hello Ambari Team,
I'm using ambari 2.0, and now I'm trying to configure Kafka so she could send
metric via kafka-graphite. I'm new to monitoring or metrics thing, I tried to
figure out what is metrics.reporter?
And also, why I can't change kafka.metrics.reporters in my kafka configuration?
I changed it via ambari but when I check kafka.properties, the value still in
default (org.apache.hadoop.metrics2.sink.kafka.KafkaTimelineMetricsReporter).
Is there any way so I can change my kafka.metrics.reporters?
Another question, I found my kafka has some metrics, I guess my Ambari Metrics
is running OK. Can I pass that metrics to graphite? Or somehow change the
destination to my graphite server?
Thanks,
Darwin