New to Kestra?
Use blueprints to kickstart your first workflows.
Monitors Azure SQL Database for DTU and CPU percentage saturation to prevent query execution timeouts and deadlocks.
This workflow monitors Database Throughput Unit (DTU) and compute saturation on Microsoft Azure SQL Databases using the Azure CLI container. In the DTU purchasing model, DTUs represent a blended measure of CPU, memory, data I/O, and transaction log I/O. When DTU utilization approaches 100%, incoming database queries experience severe execution stalls, worker thread contention, and connection pool timeouts. The flow queries Azure Monitor, calculates maximum DTU consumption, and triggers Slack alerts when critical thresholds are breached.
Monitoring Reader role on the target SQL database.AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID, and SLACK_WEBHOOK configured in Kestra.sys.dm_exec_query_stats to identify the most resource-intensive SQL queries.