--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent-platform@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/confluent-platform/9b532aa4-fe19-4173-ad27-5e3aaae79052%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
kafka.metrics.reporters=org.apache.kafka.common.metrics.MetricsReporter
kafka.graphite.metrics.reporter.enabled=true
kafka.graphite.metrics.host=graphite.hostname.com
kafka.graphite.metrics.port=2003
kafka.graphite.metrics.prefix=collectd.shared.KAFKAC.shared-kfkc-1
That class is only for the broker. org.apache.kafka.common.metrics.MetricsReporter is the one you'd want to use. It will work with everything that ships with AK (i.e. Kafka, Java clients, Connect, Streams). Schema Registry, Rest Proxy and other Confluent products use a different, but essentially the same interface: https://github.com/confluentinc/common/blob/master/metrics/src/main/java/io/confluent/common/metrics/MetricsReporter.java
On Tue, Aug 1, 2017 at 1:53 PM, Eric Pheatt <eric....@gmail.com> wrote:
Should the kafka.metrics.reporters for the satellite confluent services such as connect, rest-proxy and schema-registry work out of the box or is the KafkaMetricsReporter interface just intended for broker metrics?I'm evaluating the graphite reporter provided by https://github.com/apakulov/kafka-graphite and it is working well enough for monitoring the broker but it doesn't look like the other confluent services participate directly with that Reporter framework.Thanks,Eric
--
You received this message because you are subscribed to the Google Groups "Confluent Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to confluent-platform+unsub...@googlegroups.com.
To post to this group, send email to confluent...@googlegroups.com.
Exception in thread "main" org.apache.kafka.common.KafkaException: Failed to construct kafka consumer
at org.apache.kafka.connect.runtime.distributed.WorkerGroupMember.<init>(WorkerGroupMember.java:128)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder.<init>(DistributedHerder.java:165)
at org.apache.kafka.connect.runtime.distributed.DistributedHerder.<init>(DistributedHerder.java:145)
at org.apache.kafka.connect.cli.ConnectDistributed.main(ConnectDistributed.java:80)
Caused by: org.apache.kafka.common.KafkaException: Could not instantiate class org.apache.kafka.common.metrics.MetricsReporter Does it have a public no-argument constructor?
at org.apache.kafka.common.utils.Utils.newInstance(Utils.java:342)
at org.apache.kafka.common.utils.Utils.newInstance(Utils.java:356)
at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:243)
at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:220)
at org.apache.kafka.connect.runtime.distributed.WorkerGroupMember.<init>(WorkerGroupMember.java:86)
... 3 more
Caused by: java.lang.InstantiationException: org.apache.kafka.common.metrics.MetricsReporter
at java.lang.Class.newInstance(Class.java:427)
at org.apache.kafka.common.utils.Utils.newInstance(Utils.java:338)
... 7 more
Caused by: java.lang.NoSuchMethodException: org.apache.kafka.common.metrics.MetricsReporter.<init>()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.newInstance(Class.java:412)
... 8 more
metric.reporters=org.apache.kafka.common.metrics.GraphiteReporter
[2017-08-04 16:54:31,380] INFO SchemaRegistryConfig values:
metric.reporters = [io.confluent.common.metrics.GraphiteReporter]
...
[2017-08-04 16:54:31,455] INFO GraphiteConfig values:
kafka.graphite.metrics.exclude =
kafka.graphite.metrics.host = graphite.host
kafka.graphite.metrics.include =
kafka.graphite.metrics.port = 2003
kafka.graphite.metrics.prefix = collectd.shared.KAFKAS.shared-kfks-1
kafka.graphite.metrics.reporter.enabled = true
kafka.metrics.polling.interval.secs = 60
(io.confluent.common.metrics.GraphiteReporter$GraphiteConfig:180)
[2017-08-04 16:54:31,465] INFO Configuring Kafka Graphite Reporter with host=graphite.host, port=2003, prefix=collectd.shared.KAFKAS.shared-kfks-1 and include=, exclude= (io.confluent.common.metrics.GraphiteReporter:86)