kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Tretyakov <vladimir.tretya...@sematext.com>
Subject Re: MetricId can be EMPTY in ProducerRequestMetrics
Date Mon, 02 Jun 2014 19:04:26 GMT
Aha, I see, thx a lot.


On Mon, Jun 2, 2014 at 7:51 PM, Jun Rao <junrao@gmail.com> wrote:

> You will need to set the client.id property in the producer.
>
> Thanks,
>
> Jun
>
>
> On Mon, Jun 2, 2014 at 5:12 AM, Vladimir Tretyakov <
> vladimir.tretyakov@sematext.com> wrote:
>
> > 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