Microsoft Azure IoT Monitoring and Alert Solution

Set Up a Monitoring and Alert Solution for Azure IoT

Question

You are operating an IoT solution which collects sensor data from a wide range of field devices, including speed sensors, cameras etc.

The data is distributed over four IoT Hubs.

In order to ensure smooth operation, you want to set up a monitoring and alert solution.

You want to prevent loss of messages, and to get alerted when your daily quota for your hubs is exhausted to a certain level.

You have the choice of the following steps to build the solution: Create action group with notification Add diagnostic setting: Device telemetry Set metric: Telemetry messages sent Create alert rule Set metric: Total number of messages used Which of the above steps should you execute?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: A.

Option A is CORRECT because in order to get an email alert in this scenario, you need to create an alert rule for Total number of messages used metric, and an action group with email notification must be created.

Option B is incorrect because diagnostic settings are not needed for the given scenario; the Total number of messages used is the appropriate metric here.

Option C is incorrect because diagnostic settings are not needed for alerts; they are useful for sending the logs collected on the IoT Hub to external services like Log Analytics.

Option D is incorrect because it is the Total number of messages used metric that holds the aggregate number of messages, relevant for controlling the quotas.

Telemetry messages sent is useful to monitor message throughput, to prevent throttling, for example.

Reference:

To set up a monitoring and alert solution for an IoT solution that collects sensor data from a wide range of field devices, including speed sensors, cameras, and distributes the data over four IoT Hubs, the following steps can be executed:

  1. Create an action group with notification: An action group is a collection of notification preferences and one or more actions to perform when an alert is triggered. You can set up an action group that can send notifications via email, SMS, voice, or webhook, based on your preference.

  2. Add diagnostic setting: Device telemetry: To monitor your IoT solution's telemetry data, you need to create a diagnostic setting. This setting will capture telemetry data and send it to an Azure Monitor Log Analytics workspace. You can set up a diagnostic setting for device telemetry to capture data from your IoT devices and forward it to the Log Analytics workspace.

  3. Set metric: Telemetry messages sent: After setting up a diagnostic setting for device telemetry, you can set up a metric to track the telemetry messages sent from your IoT devices. This metric will help you monitor the flow of telemetry data and identify any issues that may arise.

  4. Create alert rule: Once you have set up the metric, you can create an alert rule that monitors the telemetry messages sent metric. This rule can be set up to trigger an alert when a certain threshold is met, indicating that the number of messages sent has reached a certain level.

  5. Set metric: Total number of messages used: In addition to monitoring the telemetry messages sent, you can also set up a metric to track the total number of messages used. This metric will help you identify any discrepancies between the number of messages sent and the number of messages used, which can help prevent loss of messages.

Therefore, the correct answer is A. 1, 4, 5.