So I am using EventHubs for data pipeline queuing, but in order to get the benefit of buffered ingestion, I need to know how many items are in a partition at any one time. Depending on the consumer group and partition id this can give massive insight into which receivers need to be scaled or aren't performing as expected.
I am aware you can create alerts based on the number of messages, but what I really want is the ability to request the current item count of a given Namespace, EventHub, Consumer Group or Partition (whatever is available) from within my C# code.
I can see that you can easily get the queue size in bytes using the .NET ServiceBus API, but I can't see any way of getting the item count?