Project Flash - Use Azure Monitor to monitor Azure Virtual Machine availability
Azure Monitor is one solution offered by Flash. Flash is the internal name for a project dedicated to building a robust, reliable, and rapid mechanism for customers to monitor virtual machine (VM) health.
This article covers the use of the Azure Monitor VM availability metric to monitor Azure Virtual Machine availability. For a general overview of Flash solutions, see the Flash overview.
For documentation specific to the other solutions offered by Flash, choose from the following articles:
- Use Azure Resource Health to monitor Azure Virtual Machine availability
- Use Azure Resource Graph to monitor Azure Virtual Machine availability
- Use Event Grid system topics to monitor Azure Virtual Machine availability
Azure monitor - VM availability metric
Currently in public preview. It's well-suited for tracking trends, aggregating platform metrics (such as CPU and disk usage) and configuring precise threshold-based alerts. Customers can utilize this out-of-the-box VM availability metric in Azure Monitor. This metric displays the trend of VM availability over time, so users can:
- Set up threshold-based metric alerts on dipping VM availability to quickly trigger appropriate mitigation actions.
- Correlate the VM availability metric with existing platform metrics like memory, network, or disk for deeper insights into concerning changes that impact the overall performance of workloads.
- Easily interact with and chart metric data during any relevant time window on Metrics Explorer, for quick and easy debugging.
- Route metrics to downstream tooling like Grafana dashboards, for constructing custom visualizations and dashboards.
Get started
Users can either consume the metric programmatically via the Azure Monitor REST API or directly from the Azure portal. The following steps highlight metric consumption from the Azure portal.
Once on the Azure portal, navigate to the VM overview blade. The new metric is displayed as VM Availability (Preview), along with other platform metrics under the Monitoring tab.
Select (single click) the VM availability metric chart on the overview page, to navigate to Metrics Explorer for further analysis. Select the VM availability metric chart on the overview page, to navigate to Metrics Explorer for further analysis.
Metric description
Display Name | VM Availability (preview) |
---|---|
Metric Values | 1 during expected behavior; corresponds to VM in Available state. 0 when VM is impacted by rebootful disruptions; corresponds to VM in Unavailable state. NULL (shows a dotted or dashed line on charts) when the Azure service that is emitting the metric is down or is unaware of the exact status of the VM; corresponds to VM in Unknown state. |
Aggregation | The default aggregation of the metric is Average, for prioritized investigations based on extent of downtime incurred. The other aggregations available are: Min, to immediately pinpoint to all the times where VM was unavailable. Max, to immediately pinpoint to all the instances where VM was Available. For more information on chart range, granularity, and data aggregation, see Azure Monitor Metrics aggregation and display explained. |
Data Retention | Data for the VM availability metric is stored for 93 days to help trend analysis and historical lookback. |
Pricing | Refer to the Pricing breakdown, specifically in the "Metrics" and "Alert Rules" sections. |
We plan to include impact details (user vs platform initiated, planned vs unplanned) as dimensions to the metric, so users are well equipped to interpret dips, and set up much more targeted metric alerts. With the emission of dimensions in 2023, we also anticipate transitioning the offering to a general availability status.
Useful links
- How to filter events for Azure Event Grid - Azure Event Grid | Microsoft Learn
- Event filtering for Azure Event Grid - Azure Event Grid | Microsoft Learn
Next steps
To learn more about the solutions offered, proceed to corresponding solution article:
- Use Azure Resource Health to monitor Azure Virtual Machine availability
- Use Azure Resource Graph to monitor Azure Virtual Machine availability
- Use Event Grid system topics to monitor Azure Virtual Machine availability
For a general overview of how to monitor Azure Virtual Machines, see Monitor Azure virtual machines and the Monitoring Azure virtual machines reference.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for