Azure Monitor
Overview
Azure Monitor provides a comprehensive solution for collecting, analyzing, and acting on telemetry from your cloud and on‑premises environments. It helps you maximize the performance and availability of your applications and services.
- Unified monitoring platform for metrics, logs, and traces.
- Integrated with Azure services and third‑party tools.
- Intelligent analytics and AI‑driven insights.
Getting Started
Follow these steps to enable Azure Monitor on a new resource group.
- Open the Azure portal and navigate to Resource groups.
- Select your target resource group.
- Under Monitoring click Enable Azure Monitor.
- Choose the data collection settings and click Save.
Example CLI command:
az monitor diagnostic-settings create \
--name myDiagSetting \
--resource /subscriptions/xxxx/resourceGroups/MyRG \
--logs '[{"category":"Administrative","enabled":true}]' \
--metrics '[{"category":"AllMetrics","enabled":true}]' \
--workspace /subscriptions/xxxx/resourceGroups/MyRG/providers/Microsoft.OperationalInsights/workspaces/MyWorkspace
Key Features
| Feature | Description |
|---|---|
| Metrics Explorer | Visualize and analyze metric data in real time. |
| Log Analytics | Run rich queries against collected log data. |
| Alerts & Actions | Automated notifications and remediation. |
| Application Insights | Deep performance monitoring for applications. |
| Network Watcher | Diagnostics for network resources. |
Pricing
Azure Monitor pricing is based on data ingestion, retention, and alerts. The following table provides a quick overview.
| Component | Unit | Cost (USD) |
|---|---|---|
| Data Ingestion | GB per month | $2.30 |
| Log Retention (first 31 days) | GB per month | $0.10 |
| Log Retention (beyond 31 days) | GB per month | $0.12 |
| Metric Alerts | Per alert rule | $0.10 |
| Log Alerts | Per alert rule | $0.10 |
For detailed pricing, see the official pricing page.
FAQ
Q: How long are logs retained by default?
A: Logs are retained for 31 days at no extra cost. Additional retention incurs a per‑GB charge.
Q: Can I export logs to an external SIEM?
A: Yes. Use the Log Analytics Workspace export feature or stream logs via Event Hub.