Azure Monitor, Log Analytics, Application Insights and Alerts: Watching Your Cloud
Azure Monitor
The central service that collects, analyzes and acts on data from your Azure and other resources.
| Data type | Meaning | Example |
|---|---|---|
| Metrics | Numbers over time, near real time | CPU percent every minute |
| Logs | Records of events and details you can query | Failed sign-ins, errors |
Parts
| Part | Use |
|---|---|
| Metrics Explorer | Chart metrics |
| Log Analytics | Query logs using KQL (Kusto Query Language) |
| Application Insights | Monitor application performance: requests, failures, slow code |
| Alerts | Notify or act when a condition is met |
| Workbooks and dashboards | Visual reports |
A Simple KQL Query
kusto
Heartbeat
| where TimeGenerated > ago(1h)
| summarize count() by Computer
| order by count_ desc
Alerts and Action Groups
- An alert rule watches a metric or log query, for example CPU above 80 percent for 5 minutes
- An action group says what to do: send email, SMS, push, call a webhook or run automation
Create a CPU Alert (Steps)
- Open the VM, then Alerts, then Create alert rule
- Condition: Percentage CPU greater than 80 for 5 minutes
- Action: choose or create an action group with your email
- Name it and create
Practice
- Metrics or logs: which is better for a live CPU chart?
- What is an action group?
- Which tool monitors application code performance?
Conclusion
Azure Monitor gathers metrics and logs. Use Log Analytics to query, Application Insights for apps and alerts with action groups to be told when something is wrong.
Quick Summary: Monitor; parts; KQL; alerts; steps.

