【发布时间】:2018-11-28 17:34:11
【问题描述】:
我已经部署了一个包含 5 个代理的 Apache Kafka 集群,其中包含图像 confluentinc/cp-enterprise-kafka 和一个包含 confluentinc/cp-enterprise-control-center 图像的 Confluent 控制面板容器,寻求以下说明https://docs.confluent.io/current/installation/docker/docs/quickstart.html#getting-started-with-docker-client
我在每个节点中激活了如下指标支持,并重新启动了它们:
##################### 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
但是:
我在 KafkaConfig 日志部分得到一个 metric.reporters = []。
-
我在 Confluent 控制中心日志中收到此警告:
[2018-06-19 16:56:35,739] WARN broker=1008 未使用 ConfluentMetricsReporter (io.confluent.controlcenter.healthcheck.HealthCheck) 进行检测
[2018-06-19 16:56:35,739] WARN broker=1009 未使用 ConfluentMetricsReporter (io.confluent.controlcenter.healthcheck.HealthCheck) 进行检测
[2018-06-19 16:56:35,739] WARN broker=1006 未使用 ConfluentMetricsReporter (io.confluent.controlcenter.healthcheck.HealthCheck) 检测
[2018-06-19 16:56:35,739] WARN broker=1010 未使用 ConfluentMetricsReporter (io.confluent.controlcenter.healthcheck.HealthCheck) 检测
[2018-06-19 16:56:35,739] WARN broker=1007 未使用 ConfluentMetricsReporter (io.confluent.controlcenter.healthcheck.HealthCheck) 检测
显然,我得到的是火箭图像
我已按照以下说明进行操作,但没有。
- https://docs.confluent.io/current/control-center/docs/installation/troubleshooting.html
- https://docs.confluent.io/current/kafka/metrics-reporter/metrics-reporter.html
这是我用来运行 Apache Kafka 容器的 Docker 命令:
docker run -d --net=confluent --name=kafka1 -e KAFKA_ZOOKEEPER_CONNECT=zookeeper1:2181 -e KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka1:9092 confluentinc/cp-enterprise-kafka
有人可以帮帮我吗?
【问题讨论】:
标签: apache-kafka confluent-platform