Open agolomoodysaada opened 7 years ago
Try using metric.reporters
rather than kafka.metrics.reporters
$ jar -tf kafka-statsd-metrics2-0.4.1.jar
META-INF/
META-INF/MANIFEST.MF
com/
com/airbnb/
com/airbnb/kafka/
com/airbnb/kafka/KafkaStatsdMetricsReporter.class
com/airbnb/kafka/KafkaStatsdMetricsReporterMBean.class
com/airbnb/metrics/
com/airbnb/metrics/Dimension.class
com/airbnb/metrics/ExcludeMetricPredicate.class
com/airbnb/metrics/MetricNameFormatter.class
com/airbnb/metrics/Parser.class
com/airbnb/metrics/ParserForNoTag.class
com/airbnb/metrics/ParserForTagInMBeanName.class
com/airbnb/metrics/StatsDReporter.class
suggests
kafka.metrics.reporters=com.airbnb.kafka.KafkaStatsdMetricsReporter
I'm using the same versions as you and this got me past the ClassNotFoundException, but I'm not seeing anything sent to statsd yet.
Got it partially working. Dropping java-dogstatsd-client-2.0.11.jar into libs/ and downgrading kafka to 0.8.2.1 (an exact match for 0.4.1/build.gradle#L26) seems to have most of the metrics showing up, minus the tag-requiring metrics mentioned in https://github.com/airbnb/kafka-statsd-metrics2/issues/9.
I added
kafka.metrics.reporters=com.airbnb.kafka.kafka08.StatsdMetricsReporter
to myconsumer.properties
file and i see this