You are monitoring an Azure web application with Application Insights. You notice a sudden increase in the number of failed requests. You want to be notified automatically when such anomalies occur, without manually setting static thresholds. Which Application Insights feature should you use?
Trap 1: Create a metric alert on the 'failed requests' metric with a static…
A static threshold alert would require you to set a fixed number, which may not adapt to normal variations. Smart Detection is better for anomaly detection.
Trap 2: Use Log Analytics to run a query every 5 minutes and trigger an…
Log Analytics queries can be used in log alerts, but they require you to define the query and threshold manually. Smart Detection is automated.
Trap 3: Create an availability test that periodically pings the application.
Availability tests monitor the endpoint's uptime and response, but they do not analyze anomalies in failed request patterns from real user traffic.
- A
Create a metric alert on the 'failed requests' metric with a static threshold.
Why wrong: A static threshold alert would require you to set a fixed number, which may not adapt to normal variations. Smart Detection is better for anomaly detection.
- B
Enable Smart Detection for failure anomalies.
Correct. Smart Detection automatically analyzes telemetry and alerts on anomalous patterns, such as a sudden spike in failed requests.
- C
Use Log Analytics to run a query every 5 minutes and trigger an action.
Why wrong: Log Analytics queries can be used in log alerts, but they require you to define the query and threshold manually. Smart Detection is automated.
- D
Create an availability test that periodically pings the application.
Why wrong: Availability tests monitor the endpoint's uptime and response, but they do not analyze anomalies in failed request patterns from real user traffic.