Skill 2.4.6

Recommend Azure Monitor configurations, including Application Insights and Log Analytics

Key Concepts

Azure SQL Database emits platform metrics (CPU, data IO, log IO, sessions, deadlocks, storage) automatically. Diagnostic settings send resource logs, such as SQLInsights, AutomaticTuning, QueryStoreRuntimeStatistics, QueryStoreWaitStatistics, Errors, DatabaseWaitStatistics, Timeouts, Blocks and Deadlocks, plus metrics, to a Log Analytics workspace for KQL queries and workbooks, to Storage for archiving or to Event Hubs for external tools. Resource-specific tables are preferred over the legacy AzureDiagnostics table. Database watcher provides deeper monitoring of Azure SQL estates.

Application Insights, backed by a Log Analytics workspace, receives telemetry from applications and from Data API builder (through its Application Insights connection string or OpenTelemetry), so request rates, failures and dependency calls to SQL appear end to end. Alerts use metric thresholds (such as CPU above 80%) or log queries (such as new deadlocks) and notify through action groups. Collect only the categories that answer a question, because log ingestion is billed.