Hello , Everyone , past few days we are experiencing some issues related to high network bandwidth consumption with our custom edge modules in our edge gateways , so we need a tool to monitor it , so guide us .

Sai techie 20 Reputation points
2023-10-02T18:20:12.1333333+00:00

I hope this message finds you well.

Recently, our team has been encountering challenges regarding excessive network bandwidth consumption by our custom edge modules in the edge gateways. We are in search of a suitable tool that can accurately measure the network consumption of these modules and send alerts when it surpasses the predefined threshold.

Your guidance and recommendations on this matter would be greatly appreciated.

Warm regards,

Sai

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.
548 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,138 questions
{count} votes

Accepted answer
  1. Saravanan Ganesan 1,745 Reputation points
    2023-10-04T19:28:11.8+00:00

    Hi Sai ,

    It's a fascinating question, and we encountered a similar issue a few days ago with Azure Stream Analytics module version 1.0.12. Interestingly, we didn't experience this problem with the previous version, 1.0.9. To address this situation, we took the following approach: we employed the 'nload' command on our edge gateway to perform a comparative analysis and monitor both incoming and outgoing network traffic.

    Nload Command :

    The 'nload' command is a powerful and handy network monitoring tool used to visualize incoming and outgoing traffic on a network interface in real-time. It provides a graphical representation of network usage, making it easier to identify traffic patterns, diagnose issues, and monitor network performance. By using 'nload,' you can gain valuable insights into how data flows through your network interfaces, helping you make informed decisions and troubleshoot network-related problems effectively.

    sudo apt install nload

    The above command will install the nload in your edge gateway , and after that you can able to check the network traffic of any module you want to monitor : for example

    nload -i <interface_or_module_name>

    Once the above command got executed you will get the details regarding the Incoming and Outgoing traffic of a particular module as mentioned and highlighted in the below screenshot .

    User's image

    So this is the way we can able to monitor the incoming and outgoing network traffic of a particular edge module in the edge gateways and after that if any alerts we need to send to the respective endpoint we can make use of iotedgemetricscollector module , if you want to know more about iotedgemetricscollectormodule kindly find the microsoft learn link provided below

    https://learn.microsoft.com/en-us/azure/iot-edge/how-to-collect-and-transport-metrics?view=iotedge-1.4&tabs=iothub

    Hope the above information is useful. Please let us know if you have any additional questions or need further assistance and if the answer provided above resolves your issue means please do upvote and accept the answer , thank you Sai !!!.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 13,871 Reputation points
    2023-10-02T20:03:57.9666667+00:00

    Hi @Sai techie Greetings! Welcome to Microsoft Q&A forum. Thank you for posting this question here.

    The IoT Edge run time components - Edge Agent and Edge Hub generate built in metrics which can be accessed remotely for monitoring. You can install metrics-collector module on your IoT Edge device to take use of the built in metrics. To address your use case, you can leverage the edgeAgent_total_network_in_bytes and edgeAgent_total_network_out_bytes metrics to get details on the number of bytes received and sent to the network. These metrics are captured at edgeAgent and denotes the total network per IoT Edge device.

    If you are looking to capture metrics at each module level, you can enable a custom metric on these modules for additional monitoring. To get more details on this please refer to Add custom metrics article.

    Here are few additional resources that will provide you with more details on the available metrics in IoT Edge devices and guides on how to monitor them.

    1. Access built-in metrics
    2. Tutorial: Monitor IoT Edge devices
    3. Collect and transport metrics
    4. Add custom metrics

    Hope the above information is useful. Please let us know if you have any additional questions or need further assistance.


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    1 person found this answer helpful.

  2. Sai techie 20 Reputation points
    2023-10-05T03:34:21.0966667+00:00

    Dear Saravanan,

    I trust this message finds you well.

    I wanted to take a moment to express our sincere gratitude for the solution you provided. Your expertise and assistance were invaluable to us. I'm pleased to report that one of our team members implemented the solution you suggested, and it aligned perfectly with our requirements. The results were exactly what we were looking for.

    Your insightful guidance and support have made a significant difference for us, and we truly appreciate your efforts.

    Thank you once again for your exceptional help.

    Regards,

    Sai.

    0 comments No comments