Monitor Alerts for Azure IoT Solution

Configure Alerts for Azure IoT Monitoring

Question

Your IoT solution consists of 10000 field devices, most of them being single field sensors, but also there are 50 edge devices used as translation gateways for a number of leaf devices.

You need to implement a monitoring solution which can generate alerts on the basis of quota metrics, using the Azure Monitor.

Which is the simplest way to configure the alert?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: B.

Option A is incorrect because in order to use resource logs for alerting or analysis, you need to route log data to a destination like Log Analytics or Storage Account.

It requires additional configuration because you must create a diagnostic setting.

Option B is CORRECT because platform metrics are automatically collected by Azure Monitor and are available as time series data.

Total number of messages can be used to monitor daily quota usage.

You can easily set alerts from your IoT Hub / Alerts.

Option C is incorrect because activity logs are basically used to monitor the health of the services and administrative operations (to answer the who?, when?, what? questions) at a general level, not for monitoring service-specific metrics.

Option D is incorrect because in order to monitor daily quota usages, you need to use daily quota metrics like Total device data usage or Total number of messages used.

C2D messages won't fit your goal.

Diagram:

>| Metrics

Metrics Explorer ili

—+{ Metric Alerts QB

References:

To monitor the usage and performance of your IoT solution and generate alerts based on quota metrics, you can use Azure Monitor. Azure Monitor is a fully managed service that collects telemetry data from various sources and provides a unified view of resource utilization, application performance, and operational health.

In this scenario, you have 10000 field devices, including 50 edge devices acting as gateways, and you want to monitor the usage of your IoT solution and generate alerts based on quota metrics. You need to choose the appropriate metric and resource type to configure the alert.

Option A: Use Resource logs with Total number of messages used Resource logs are the logs generated by Azure resources, such as IoT Hub, that capture operational data about the resource itself. The Total number of messages used is a quota metric that counts the number of messages processed by IoT Hub, including device-to-cloud messages and cloud-to-device messages. However, this metric may not be the best choice for monitoring the usage of your IoT solution, as it does not differentiate between the types of devices and messages.

Option B: Use Platform metrics with Total number of messages used Platform metrics are the performance metrics collected by Azure Monitor for various Azure services, including IoT Hub. The Total number of messages used is a platform metric that counts the number of messages processed by IoT Hub, including device-to-cloud messages and cloud-to-device messages. This metric is a better choice than resource logs as it provides a more granular view of the message usage and can be used to monitor the performance of individual devices and gateways.

Option C: Use Activity logs with Total device data used Activity logs are the logs that capture the operations performed on Azure resources, such as IoT Hub, and can be used to audit resource changes and track usage. The Total device data used is a quota metric that counts the amount of data processed by IoT Hub from device-to-cloud messages. However, this metric may not be the best choice for monitoring the usage of your IoT solution, as it only considers the device-to-cloud messages and does not include cloud-to-device messages.

Option D: Use Platform metrics with C2D message deliveries completed C2D (cloud-to-device) messages are messages sent from the cloud to the devices, and the C2D message deliveries completed metric counts the number of C2D messages successfully delivered to the devices. This metric can be used to monitor the performance of the edge devices acting as gateways and their ability to forward the messages to the leaf devices.

Therefore, the best option for configuring the alert is option B: Use Platform metrics with Total number of messages used. This metric provides a granular view of the message usage and can be used to monitor the performance of individual devices and gateways.