question

VictorBe-7598 avatar image
1 Vote"
VictorBe-7598 asked SatishBoddu-MSFT edited

pricing of IoT Hub build-in event hub endpoint

Hello,

I have a question about the IoT Hub message pricing.

The IoT Hub has a build-in event hub endpoint to which the messages are routed by default https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messages-d2c#built-in-endpoint-as-a-routing-endpoint. If we send D2C messages and read them with an app from the build-in endpoint, does it count as one message or two? So if we send 1000 messages a day and consume each of them from the build-in endpoint, are we charged for 2000 messages?

azure-iot-hub
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered SatishBoddu-MSFT edited

Hello @VictorBe-7598 This is a great question!

So if we send 1000 messages a day and consume each of them from the build-in endpoint, are we charged for 2000 messages?

No, please see the below section.

Updated:04/13/2021 PDT removed confusing sentences related to this query.
IoTHub will not charge for egress for built-in EventHub, please see the below-quoted message for better clarification. For a full list of metrics counts, please see the section on Monitoring Azure IoT Hub data reference and Monitoring Azure IoT Hub.
The most important section to follow and understand is : Charges per operation

Please don't be confused with charged quota and metrics being displayed!

IoT Hub does not charge for egress. The messages will be counted towards quota only once.
yes, services used downstream will be charged per their pricing, but IoT Hub will not use up quota if you pull data from built-in EH or even if you route it out. No charge for routing, but custom endpoint service will charge per use.


Below example will help in checking the metrics on Azure Portal: For quick testing purposes, please make use of online simulator+Azure IoT Device connection string to send simulated telemetry to IoTHub.

-->I have sent total 97 telemetry messages from the online simulator and I read only 1 telemetry message from the backend application using the IoT Explorer tool.
So assume that a total of 98 would be the message count, but the metrics can be tracked on Azure Portal quickly, please see the below screenshots.

Sending...
87209-image.png

Reading...
87188-image.png

Metrics on Azure Portal:
87103-image.png


Actual Telemetry sent:

87241-image.png

One of the other Metrics which are included as part of the above testing: because I have initiated my backend application to list available devices in the IoTHub.

87253-image.png

Please leverage the IoTHub Azure Portal and verify quickly from your side as well.

Also visit the examples on this page: Example#1, Example#2

Please leave a comment in the below section if you have further questions in this matter, happy to help!

If the response is helpful, please click "Accept Answer" and upvote it so that it is helpful to others as well!









image.png (21.8 KiB)
image.png (79.7 KiB)
image.png (53.7 KiB)
image.png (64.0 KiB)
image.png (64.8 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for the quick reply @SatishBoddu-MSFT

I found the Charges per operation doc, but I don't see one that corresponds to reading D2C messages from the Event Hub endpoint. My test also indicated otherwise.

I have an application that sends telemetry data.
87237-send.png

And an application that receives messages from the event hub endpoint.
87247-consume.png




But the total metric "number of massaged used" and "telemetry messages sent" are the same.
87257-metrcs.png



0 Votes 0 ·
send.png (164.7 KiB)
consume.png (214.3 KiB)
metrcs.png (128.1 KiB)

Hello @VictorBe-7598 There might be some latency in the portal metrics dashboard, can you please check again with larger timespan?

0 Votes 0 ·

Hello @VictorBe-7598 I have updated my above response with more clarity. I hope its now clear!
Please don't be confused with charged quota and metrics being displayed!

IoT Hub does not charge for egress. The messages will be counted towards quota only once.
yes, services used downstream will be charged per their pricing, but IoT Hub will not use up quota if you pull data from built-in EH or even if you route it out. No charge for routing, but custom endpoint service will charge per use.

0 Votes 0 ·