You are setting up monitoring for a multi-tier web application. You need to configure an Azure Monitor Log Search alert rule to detect critical database exceptions logged to Application Insights, and configure an Action Group to notify your DevOps team via their internal API endpoint. Which two configurations should you implement to achieve this?
- Configure a Kusto Query Language (KQL) query targeting the exceptions table to identify the error, ensuring the query runs within the alert rule's configured evaluation time window.Cevap
- Configure a Webhook action in the Action Group to send JSON payloads to the internal API endpoint when the alert triggers.Cevap
- CWrite a KQL query for the alert rule that runs over the entire table history without any time window constraints, ensuring all historical instances of the error are evaluated on every execution.
- DConfigure the web application to send telemetry without setting the Application Insights Connection String, relying on the Action Group to auto-discover the target workspace.
Cevap
To implement this monitoring solution, you must configure a Kusto Query Language (KQL) query targeting the exceptions table within the alert's evaluation window, and configure a Webhook action in the Action Group to send JSON payloads to the internal API endpoint.
Writing a KQL query on the exceptions table within the lookback window ensures that the alert rule can detect errors. Adding a Webhook action to the Action Group allows the alert to post notifications to the team's internal API endpoint.
Adım Adım Çözüm
Anahtar Kavram
Azure Monitor Log Search alerts utilize KQL queries to evaluate telemetry data (like exceptions) over a specific time window, and Action Groups route alerts to receivers such as Webhooks.
Tahmini Süre:2m 0s