Designing a Monitoring Strategy: What to Measure, Azure Monitor Architecture, Workspaces and Data Retention
Why Monitor?
- Know when users are hurt before they tell you
- Find the cause quickly
- Plan capacity and prove SLOs
- Meet audit and security needs
What to Measure: Golden Signals
| Signal | Meaning | Example |
| Latency | How long requests take | 95th percentile response time |
| Traffic | How much demand | Requests per second |
| Errors | How many fail | 5xx rate |
| Saturation | How full resources are | CPU, memory, queue length, DB DTU |
Add business metrics such as orders per minute and availability tests from outside.
Monitoring Layers
| Layer | Source |
| Application | Application Insights (requests, dependencies, exceptions) |
| Guest OS and workloads | Azure Monitor Agent, VM insights, Container insights |
| Azure resources | Platform metrics and resource logs (diagnostic settings) |
| Subscription | Activity log, Service Health, Advisor |
| Tenant | Entra ID sign-in and audit logs |
| Network | NSG flow logs / virtual network flow logs, Connection Monitor, Network Watcher |
Log Analytics Workspace Design
| Approach | Use when |
| Single central workspace | Default for most, simplest queries and Sentinel, one place to alert |
| Workspace per region | Data residency or large cross-region ingestion costs |
| Workspace per environment or team | Strong access separation, different retention |
| Per-tenant workspaces | Service providers, with Azure Lighthouse for cross-tenant access |
- Use resource-context RBAC so app teams see only their resources' logs in a shared workspace
- Use table-level retention, Basic logs and Auxiliary table plans for cheap data. Check current plan names
- Use data collection rules to filter and transform at ingestion
Retention Design
| Need | Setting |
| Interactive queries for 30 to 90 days | Workspace retention |
| Compliance for years | Archive tier or export to storage with immutability |
| Security investigations | Longer retention for security tables |
Cost Control
- Collect only useful logs, not everything
- Use daily cap carefully (it can stop collection)
- Commitment tiers for large steady ingestion
- Sample Application Insights telemetry for noisy apps
Requirements to Design Table
| Requirement | Design |
| Detect outages in 5 minutes | Availability tests + metric alerts |
| Trace a request across 10 services | Application Insights distributed tracing with OpenTelemetry |
| Keep audit logs 7 years | Archive or immutable storage export |
| Developers must not see other teams' logs | Resource-context RBAC or separate workspaces |
| Compare dev, test and prod | Tags and workbooks by environment |
Practice
- List golden signals for an online store
- Choose a workspace design for three regions with data residency rules
- Design retention for security and application logs
Conclusion
Design monitoring from goals: measure latency, traffic, errors and saturation at app, resource, subscription and tenant layers, use a thoughtful workspace and retention design and control ingestion cost.
Quick Summary: goals; golden signals; layers; workspaces; retention; cost; table.