Sumit Talesara
Sumit Talesara

Reputation: 143

Calculate incoming bytes per second in Azure Event hub

How do I calculate the incoming bytes per second for an event hub namespace?
I do not control the data producer and so cannot predict the incoming bytes upfront.
I am interested in adjusting the maximum throughput units I need, without using the auto-inflate feature.
1 TU provides 1 MB/s ingress & 2 MB/s egress, but the metrics are reported per minute, not per second.

Can I make a decision based on the sum/avg/max incoming bytes reported in the Azure portal?

Upvotes: 0

Views: 1105

Answers (2)

Serkant Karaca
Serkant Karaca

Reputation: 2034

Per second metrics cannot be reliable due to very nature of potential intermittent spikes at the traffic in and out. 1 minute averages are good to monitor and you can easily take action via a Logic App.

Check messaging metrics to monitor here - https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-metrics-azure-monitor#message-metrics

Upvotes: 1

Thiago Custodio
Thiago Custodio

Reputation: 18387

I believe you'll need to use Stream Analytics to query your stream and based on the query output change your TU on Event Hub.

You can also try to use Azure Monitor, but I believe it won't group per second as you need, so you'd better try the first option.

Upvotes: 1

Related Questions