kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Tretyakov <vladimir.tretya...@sematext.com>
Subject MetricId can be EMPTY in ProducerRequestMetrics
Date Mon, 02 Jun 2014 12:12:07 GMT
Hello everyone,

We are adding Kafka 0.8.x monitoring support to SPM
<http://sematext.com/spm/> here at Sematex and I have one question about
JMX Kafka beans:

In Jconsole for my local setup I see:

"kafka.producer:type=ProducerRequestMetrics,name=-
host_localhost-port_9092-ProducerRequestRateAndTimeMs"

Look at '-' before host -- something is clearly missing there, right?  In
Kafka code I see:

class ProducerRequestMetrics(metricId: ClientIdAndBroker) extends
KafkaMetricsGroup {

 val requestTimer = new KafkaTimer(newTimer(metricId +
"-ProducerRequestRateAndTimeMs", TimeUnit.MILLISECONDS, TimeUnit.SECONDS))

 val requestSizeHist = newHistogram(metricId + "-ProducerRequestSize")

}

For some reason metricId is EMPTY in my case, I don't know, maybe it is
common behavior, can I be sure it will not change with time? Maybe there
must be some value I don't see locally?

Thx and best regards from Sematext.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message