Monitor Azure Compute Scale Sets

Overview of Monitoring

Monitoring your Azure Compute Scale Sets (VMSS) is crucial for ensuring their availability, performance, and cost-effectiveness. Azure provides a rich set of tools and services to help you gain insights into your VMSS operations.

Key aspects to monitor include:

Azure Monitor for VMSS

Azure Monitor is the central service for collecting, analyzing, and acting on telemetry from your Azure and on-premises environments. It provides comprehensive monitoring capabilities for VMSS.

Key Azure Monitor Features:

Scenarios:

You can use Azure Monitor to:

Instance Health

Understanding the health of individual virtual machines within your scale set is vital. Azure Monitor provides several ways to check instance health:

Tip: Configure custom health probes that reflect the actual health of your application, not just the operating system.

Performance Metrics

Monitor key performance indicators (KPIs) to ensure your applications are running efficiently and meeting performance targets.

Commonly monitored metrics include:

You can view these metrics in the Azure portal under the "Monitoring" section of your VMSS resource, or by querying them in Log Analytics.


Perf
| where ObjectName == "Processor" and CounterName == "% Processor Time" and InstanceName == "_Total"
| summarize avg(CounterValue) by bin(TimeGenerated, 5m)
| render timechart
            

Logging and Diagnostics

Detailed logging is essential for troubleshooting and understanding application behavior.

Important: Migrate from the Azure Diagnostics Extension to the Azure Monitor Agent for improved performance and feature set.

You can collect:

Alerting for Proactive Response

Set up alerts to be notified of potential issues before they impact your users.

Consider creating alerts for:

Alerts can trigger actions such as sending an email, triggering a webhook, or running an Azure Automation runbook.