samza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Srujun Thanmay Gupta <sgupt...@illinois.edu>
Subject No Metrics Emitted in new High-Level API
Date Sat, 27 Jan 2018 00:25:23 GMT
Hello,

I am trying to get metrics from my sample Samza application into Kafka. My
application uses the new high-level API and I am expecting to see the
default Samza metrics in the "metrics" topic within Kafka. I have
configured the stream based on the Metrics Documentation on the Samza
website (https://samza.apache.org/learn/documentation/0.14/
container/metrics.html), but it does not seem to be emitting anything, even
after it created the topic.

Here are the lines I added:
# Metrics
metrics.reporters=snapshot,jmx
metrics.reporter.snapshot.class=org.apache.samza.metrics.reporter.MetricsSnapshotReporterFactory
metrics.reporter.snapshot.stream=kafka.metrics
metrics.reporter.snapshot.interval=10
metrics.reporter.jmx.class=org.apache.samza.metrics.reporter.JmxReporterFactory
# Encode metrics data as JSON
serializers.registry.metrics.class=org.apache.samza.serializers.MetricsSnapshotSerdeFactory
systems.kafka.streams.metrics.samza.msg.serde=metrics

Running the same configuration added to the Wikipedia{Feed,Parser,Stats}
examples within hello-samza does generate the metrics, but it uses the old
API. The metrics config even exists in the config file for the
WikipediaApplication example which does use the new API but it too does not
emit anything in my case.

Are default Samza metrics not yet supported when using the high-level API?
Or do I need to specifically enable them?

Thank you!

-- 
Srujun Thanmay Gupta

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