Apache Kafka brokers not sending metrics to Confluent Control Panel

I have deployed a 5 brokers Apache Kafka cluster with the image confluentinc/cp-enterprise-kafka and a Confluent Control Panel container with the confluentinc/cp-enterprise-control-center image, seeking the following instructions https://docs.confluent.io/current/installation/docker/docs/quickstart.html#getting-started-with-docker-client

I activated the metrics supports as follow in each node and I have restarted them:

##################### Confluent Metrics Reporter #######################
# Confluent Control Center and Confluent Auto Data Balancer integration
#
# Uncomment the following lines to publish monitoring data for
# Confluent Control Center and Confluent Auto Data Balancer
# If you are using a dedicated metrics cluster, also adjust the settings
# to point to your metrics kakfa cluster.
metric.reporters=io.confluent.metrics.reporter.ConfluentMetricsReporter
confluent.metrics.reporter.bootstrap.servers=localhost:9092
#
# Uncomment the following line if the metrics cluster has a single broker
#confluent.metrics.reporter.topic.replicas=1

##################### Confluent Proactive Support ######################
# If set to true, and confluent-support-metrics package is installed
# then the feature to collect and report support metrics
# ("Metrics") is enabled.  If set to false, the feature is disabled.
#
confluent.support.metrics.enable=true

But:

Obviously, I'm getting the Rocket Image

enter image description here

I have followed the following instructions but nothing.

This is the Docker command I use to run the Apache Kafka container:

docker run -d --net=confluent  --name=kafka1 -e KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka1:9092 confluentinc/cp-enterprise-kafka

Can someone help me, please?

Upvotes: 0

Views: 7872

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191671

I'll point out the obvious.

Every broker needs that property file configured, not just one.

You need to restart Kafka after every change to that file. Since you're using Docker, you need to be respectful about not deleting your Kafka topic data (for example, use a volume mount)

You need to put a comma separated list of all five bootstrap servers on the line for the metrics reporter, not only localhost

Upvotes: 1

Related Questions