kafka-http-metrics-reporter
kafka-http-metrics-reporter copied to clipboard
This is a http metrics reporter for kafka using Jetty with the Codahale metrics servlets (http://metrics.codahale.com/manual/servlets/kafka )
The following exception is visible in the broker logs > [2017-11-13 10:20:52,018] WARN /api/metrics (org.eclipse.jetty.servlet.ServletHandler) java.lang.reflect.InaccessibleObjectException: Unable to make public long com.sun.management.internal.OperatingSystemImpl.getOpenFileDescriptorCount() accessible: module jdk.management does not "opens com.sun.management.internal" to...
I generated jar file, put it in /usr/share/java/kafka/kafka-http-metrics-reporter-0.11.0.0.jar, then in the config server.properties wrote: kafka.metrics.reporters = nl.techop.kafka. KafkaHttpMetricsReporter kafka.http.metrics.reporter.enabled = true kafka.http.metrics.host = localhost kafka.http.metrics.port = 8897 After the start...