We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9af903 + 351cf4e commit c753516Copy full SHA for c753516
lib/kafka/statsd.rb
@@ -97,6 +97,7 @@ def process_message(event)
97
end
98
99
def process_batch(event)
100
+ lag = event.payload.fetch(:offset_lag)
101
messages = event.payload.fetch(:message_count)
102
client = event.payload.fetch(:client_id)
103
group_id = event.payload.fetch(:group_id)
@@ -109,6 +110,8 @@ def process_batch(event)
109
110
timing("consumer.#{client}.#{group_id}.#{topic}.#{partition}.process_batch.latency", event.duration)
111
count("consumer.#{client}.#{group_id}.#{topic}.#{partition}.messages", messages)
112
113
+
114
+ gauge("consumer.#{client}.#{group_id}.#{topic}.#{partition}.lag", lag)
115
116
117
def join_group(event)
0 commit comments