1
votes

We are trying to debug an issue with Azure IoT edge modules deployed in a transient network environment. The problem is our edge module code sends messages using moduleclient and the call returns successfully. However some messages do not make it to the Azure Iot Hub in the cloud. The devices are often in a disconnected state and we are unsure if the messages are timing out on the upload queue or backing up on the edge hub queue because of lack of bandwidth. Is there anyway to check for edge hub queue depth and failed message count on the IoT edge runtime?

2

2 Answers

2
votes

edgeHub exposes some metrics that you can collect and send to Log Analytics (or other tools), including messages received and sent. This might help you.

edgeHub metrics usage

List of edgeHub metrics

0
votes

You may need to debug the communication between the IoT Edge Hub from the IoT Edge Runtime and the IoT Hub or between your module and the IoT Edge Hub. You can find more here: https://docs.microsoft.com/en-us/azure/iot-edge/troubleshoot

From the cloud side (IoT Hub), you can try: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-troubleshoot-connectivity