Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/kafka/consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ impl ConsumerContext for KafkaContext {
info!("Partition assignment event sent, waiting for rendezvous...");
let _ = rendezvous_receiver.recv();
info!("Rendezvous complete");
metrics::counter!("arroyo.consumer.partitions_assigned.count")
.increment(tpl.count() as u64);
metrics::gauge!("arroyo.consumer.current_partitions").increment(tpl.count() as f64);
Comment thread
lvthanh03 marked this conversation as resolved.
Resolved
}
Rebalance::Revoke(tpl) => {
debug!("Got pre-rebalance callback, kind: Revoke");
Expand All @@ -165,6 +168,9 @@ impl ConsumerContext for KafkaContext {
info!("Partition revocation event sent, waiting for rendezvous...");
let _ = rendezvous_receiver.recv();
info!("Rendezvous complete");
metrics::counter!("arroyo.consumer.partitions_revoked.count")
.increment(tpl.count() as u64);
metrics::gauge!("arroyo.consumer.current_partitions").decrement(tpl.count() as f64);
}
Rebalance::Error(err) => {
debug!("Got pre-rebalance callback, kind: Error");
Expand Down
Loading