Class: Kafka::Statsd::FetcherSubscriber

Inherits:
StatsdSubscriber
  • Object
show all
Defined in:
lib/kafka/statsd.rb

Instance Method Summary collapse

Instance Method Details

#loop(event) ⇒ Object



285
286
287
288
289
290
291
# File 'lib/kafka/statsd.rb', line 285

def loop(event)
  queue_size = event.payload.fetch(:queue_size)
  client = event.payload.fetch(:client_id)
  group_id = event.payload.fetch(:group_id)

  gauge("fetcher.#{client}.#{group_id}.queue_size", queue_size)
end