Search in sources :

Example 1 with KafkaThread

use of org.apache.kafka.common.utils.KafkaThread in project cruise-control by linkedin.

the class CruiseControlMetricsReporter method init.

@Override
public void init(List<KafkaMetric> metrics) {
    for (KafkaMetric kafkaMetric : metrics) {
        addMetricIfInterested(kafkaMetric);
    }
    LOG.info("Added {} Kafka metrics for Cruise Control metrics during initialization.", _interestedMetrics.size());
    _metricsReporterRunner = new KafkaThread("CruiseControlMetricsReporterRunner", this, true);
    _yammerMetricProcessor = new YammerMetricProcessor();
    _metricsReporterRunner.start();
}
Also used : KafkaThread(org.apache.kafka.common.utils.KafkaThread) KafkaMetric(org.apache.kafka.common.metrics.KafkaMetric) YammerMetricProcessor(com.linkedin.kafka.cruisecontrol.metricsreporter.metric.YammerMetricProcessor)

Aggregations

YammerMetricProcessor (com.linkedin.kafka.cruisecontrol.metricsreporter.metric.YammerMetricProcessor)1 KafkaMetric (org.apache.kafka.common.metrics.KafkaMetric)1 KafkaThread (org.apache.kafka.common.utils.KafkaThread)1