Based on what Azure Monitor says the IoT Edge Device is offline when IoTEdgeMetricsCollector module is deployed

Roshan Thomas(UST,IN) 0 Reputation points
2023-11-24T18:35:10.4766667+00:00

Hello,

I'm seeking clarification regarding the functionality of the IoTEdgeMetricsCollector module within an IoT Edge Device. Specifically, I'm interested in how this module helps determine the connectivity status of the IoT Edge Device to the internet or IoT Hub, as well as the connectivity of custom modules to the internet or IoT Hub.

Could someone provide insights or explanations regarding this?

Thank you!

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,971 questions
Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
391 questions
Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
557 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 30,866 Reputation points MVP
    2023-11-24T23:20:16.2266667+00:00

    Hello @Roshan Thomas(UST,IN),

    welcome to this moderated Azure community forum.

    The simple answer is that it does not help to determine that.

    These are two separate mechanisms.

    The MetricsCollector collects Prometheus messages emitted by the edgeAgent and edgeHub modules and sends them to the cloud so the Metrics worksbooks in the IoTHub can read it from Azure Monitoring.

    The connection state is determined at an interval by the IoT Hub. It is seen in the Azure portal UI or you could collect the connectivity events emitted via the routing mechanism.

    Of course, you could combine these two to get more fine-grained insights regarding the connectivity of you could eg. add a heartbeat.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments