Hello @Kevin Tahon , Thanks for reaching out to us!.
Have you referred to Monitoring Azure IoT Hub data reference and Monitoring Azure IoT Hub
Please make use of the 'IoT Hub Metrics section' to see the tracked message count. Below sample image showing the Metrics section.
- Telemetry messages sent ==>Number of device-to-cloud telemetry messages sent successfully to your IoT hub
- Routing: messages delivered to messages/events ==>The number of times IoT Hub routing successfully delivered messages to the built-in endpoint
(messages/events). This metric only starts working when routing is enabled (https://aka.ms/iotrouting) for the IoT hub. - Commands completed ==>Number of cloud-to-device commands completed successfully by the device.
- Telemetry message send attempts ==>Number of device-to-cloud telemetry messages attempted to be sent to your IoT hub.
To Troubleshoot this scenario: Please confirm on below ask.
What were the metrics [Message count] when the device is disabled or shutdown?
Do you still see message count during this turned-off scenario?
Please let us know immediately if you need further help in this matter.
Updated:11/24/2020 Outcome of support team's resolution.
These messages (mostly GetTwin and update Reported properties in your case) are part of normal IoT Edge device operations and they can be tweaked at the cost of slower responsiveness from the Edge device by using the Env Variables (especially MinTwinSyncPeriodSecs and ReportedPropertiesSyncFrequencySecs
) described here:
https://github.com/Azure/iotedge/blob/master/doc/EnvironmentVariables.md
They are part of the direct costs of using edge device. However they count little against the daily quota which minimum is of 400K messages per day and it should not reflect much in the final costs of the IoTHub if the daily quota is not exceeded.