linkedin / cruise-control

Cruise-control is the first of its kind to fully automate the dynamic workload rebalance and self-healing of a Kafka cluster. It provides great value to Kafka users by simplifying the operation of Kafka clusters.
https://github.com/linkedin/cruise-control/tags
BSD 2-Clause "Simplified" License
2.74k stars 587 forks source link

__CruiseControlMetrics collected 0 metrics #1166

Closed HistoryGift closed 4 years ago

HistoryGift commented 4 years ago

I just deployed a new kafka cluster(0.11),and I git clone CC (kafka_0_11_and_1_0) when CC is up ,I find CruiseControlMetrics show Collected 0 metrics I had copy cruise-control-metrics-reporter-0.1.70-SNAPSHOT.jar to kafka broker libs folder the log: [2020-04-02 08:43:58,927] INFO Finished sampling for topic partitions [CruiseControlMetrics-0] in time range [1585831313922,1585831433922]. Collected 0 metrics. (com.linkedin.kafka.cruisecontrol.monitor.sampling.CruiseControlMetricsReporterSampler) [2020-04-02 08:43:58,927] INFO Collected 0 partition metric samples for 0 partitions. Total partition assigned: 116. (com.linkedin.kafka.cruisecontrol.monitor.sampling.SamplingFetcher) [2020-04-02 08:43:58,927] INFO Collected 0 broker metric samples for 0 brokers. (com.linkedin.kafka.cruisecontrol.monitor.sampling.SamplingFetcher) [2020-04-02 08:43:58,927] INFO Finished sampling in 5005 ms. (com.linkedin.kafka.cruisecontrol.monitor.sampling.MetricFetcherManager) [2020-04-02 08:44:24,343] INFO Skipping proposal precomputing because load monitor does not have enough snapshots. (com.linkedin.kafka.cruisecontrol.analyzer.GoalOptimizer)

kafka server.properties broker.id=0 listeners=PLAINTEXT://xxxx:9092 num.network.threads=3 num.io.threads=8 socket.send.buffer.bytes=102400 socket.receive.buffer.bytes=102400 socket.request.max.bytes=104857600 log.dirs=/tmp/kafka-logs num.partitions=1 num.recovery.threads.per.data.dir=1 log.retention.hours=168 log.segment.bytes=1073741824 log.retention.check.interval.ms=300000 zookeeper.connect=xxx:2181 zookeeper.connection.timeout.ms=6000 metric.reporters=com.linkedin.kafka.cruisecontrol.metricsreporter.CruiseControlMetricsReporter

CC cruisecontrol.properties I just modify bootstrap.servers & zookeeper.connect

the topic CruiseControlMetrics & KafkaCruiseControlModelTrainingSamples & __KafkaCruiseControlPartitionMetricSamples is created

what can i do now ?

HistoryGift commented 4 years ago

i resolved the problem,it is a NIC problem

efeg commented 4 years ago

Thanks for the update.