Re: Monitoring consumer lag

2015-11-16 Thread Boris Shkolnik
Just to add to Jagasish's suggestion - you can configure MetricsSnapshotRecorder to output the metrics into a stream and read them from there if it works better for you. Boris. On Mon, Nov 16, 2015 at 12:32 PM, Jordan Shaw wrote: > Michael, > I should have added if your using Burrow in the cont

Re: Monitoring consumer lag

2015-11-16 Thread Jordan Shaw
Michael, I should have added if your using Burrow in the context of samza consumers it probably won't work because samza does it's own offset tracking (see checkpoint topics). The messages-behind-high-watermark is probably your best bet if you just want something out of the box and don't care about

Re: Monitoring consumer lag

2015-11-16 Thread Michael Ravits
Thanks Jagadish! I'll look further into this. Jordan, I tested Burrow with 0.8.3-SNAPSHOT and set it to read consumer offsets from zookeeper because I assumed that it's the default Kafka config for commiting offsets. Will try again with Burrow set to read from __consumer_offsets. Thanks On Mon,

Re: Monitoring consumer lag

2015-11-16 Thread Jordan Shaw
Michael, It depends on how you define lag. 1) If you define lag as the total number of messages behind then burrow is a good tool as long as all your infrastructure is on 0.8.2, it basically works by inspecting the __consumer_offsets topic which was introduced in 0.8.2 (they said they were going t

Re: Monitoring consumer lag

2015-11-16 Thread Jagadish Venkatraman
The following metrics are reported via JMX. 1. Samza exposes a per-partition metric called "$topicname-$partition_name- messages-behind-high-watermark". This measures the number of messages behind the high watermark of your consumer. Ideally, at steady state, you would expect this metric to be zer

Monitoring consumer lag

2015-11-16 Thread Michael Ravits
Hi, I'd like to monitor consumer's lag. Found this tool https://github.com/linkedin/Burrow. But now realized that Samza is using it's own checkpointing mechanism. So question is what's the best way to monitor whether and how much the consumer is lagging? On a related subject, I'd also like to mo