IoT Hub supports new Azure Monitor metric alerts
Published date: March 25, 2019
We've added Azure IoT Hub support for the newer Azure Monitor metric alerts. These new metric alerts are faster and more flexible than the older classic alerts, and they're easier to set up.
To get started:
- Go to your IoT hub in the Azure portal.
- Under Monitoring, select Alerts.
- Select New alert rule.
- Select Add condition. Notice that Metrics is now a supported signal type.
- Follow prompts to finish setting up the alert.
We also fixed a bug with device count metrics in IoT Hub, specifically
totalDeviceCount, where they don't correctly trigger with classic alerts. They now work properly with the new alerts. As such, we'll remove the deprecated device count metrics (
devices.connectedDevices.allProtocol) in September 2019.
To see which metrics you can set up alerts for, go to IoT Hub metrics.