Monitoring with the Confluent Control Center
This recipe shows you how to use the metrics reporter of the Confluent Control Center.
Getting ready
The execution of the previous recipe is needed.
Before starting the Control Center, configure the metrics reporter:
- Back up the
server.properties
file located at:
<confluent_path>/etc/kafka/server.properties
- In the
server.properties
file, uncomment the following lines:
metric.reporters=io.confluent.metrics.reporter.ConfluentMetricsReporter confluent.metrics.reporter.bootstrap.servers=localhost:9092 confluent.metrics.reporter.topic.replicas=1
- Back up the Kafka Connect configuration located in:
<confluent_path>/etc/schema-registry/connect-avro-distributed.properties
- Add the following lines at the end of the
connect-avro-distributed.properties
file:
consumer.interceptor.classes=io.confluent.monitoring.clients.interceptor.MonitoringConsumerInterceptor producer.interceptor.classes=io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptor...