Skip to content

Commit

Permalink
add consumer_member_id tag to partitions assign / revoked metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarkentin committed Apr 22, 2024
1 parent 8a90458 commit b5e426f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arroyo/processing/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def on_partitions_assigned(partitions: Mapping[Partition, int]) -> None:
logger.info("New partitions assigned: %r", partitions)
logger.info("Member id: %r", self.__consumer.member_id)
self.__metrics_buffer.metrics.increment(
"arroyo.consumer.partitions_assigned.count", len(partitions)
"arroyo.consumer.partitions_assigned.count", len(partitions), tags={"consumer_member_id": self.__consumer.member_id}
)

self.__buffered_messages.reset()
Expand All @@ -254,7 +254,7 @@ def on_partitions_revoked(partitions: Sequence[Partition]) -> None:
logger.info("Partitions to revoke: %r", partitions)

self.__metrics_buffer.metrics.increment(
"arroyo.consumer.partitions_revoked.count", len(partitions)
"arroyo.consumer.partitions_revoked.count", len(partitions), tags={"consumer_member_id": self.__consumer.member_id}
)

if partitions:
Expand Down

0 comments on commit b5e426f

Please sign in to comment.