You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/alerts.md
-59Lines changed: 0 additions & 59 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,65 +20,6 @@ There are multiple types of alerts:
20
20
*[**Web tests**][availability] tell you when your site is unavailable on the internet, or responding slowly. [Learn more][availability].
21
21
*[**Proactive diagnostics**](../../azure-monitor/app/proactive-diagnostics.md) are configured automatically to notify you about unusual performance patterns.
22
22
23
-
## Set a Metric alert
24
-
25
-
Open the Alert rules tab, and then use the add button.
26
-
27
-

28
-
29
-
* Set the resource before the other properties. **Choose the "(components)" resource** if you want to set alerts on performance or usage metrics.
30
-
* The name that you give to the alert must be unique within the resource group (not just your application).
31
-
* Be careful to note the units in which you're asked to enter the threshold value.
32
-
* If you check the box "Email owners...", alerts are sent by email to everyone who has access to this resource group. To expand this set of people, add them to the [resource group or subscription](../../azure-monitor/app/resources-roles-access-control.md) (not the resource).
33
-
* If you specify "Additional emails", alerts are sent to those individuals or groups (whether or not you checked the "email owners..." box).
34
-
* Set a [webhook address](../../azure-monitor/platform/alerts-webhooks.md) if you have set up a web app that responds to alerts. It is called both when the alert is Activated and when it is Resolved. (But note that at present, query parameters are not passed through as webhook properties.)
35
-
* You can Disable or Enable the alert: see the buttons at the top.
36
-
37
-
*I don't see the Add Alert button.*
38
-
39
-
* Are you using an organizational account? You can set alerts if you have owner or contributor access to this application resource. Take a look at the Access Control tab. [Learn about access control][roles].
40
-
41
-
> [!NOTE]
42
-
> In the alerts blade, you see that there's already an alert set up: [Proactive Diagnostics](../../azure-monitor/app/proactive-failure-diagnostics.md). The automatic alert monitors one particular metric, request failure rate. Unless you decide to disable the proactive alert, you don't need to set your own alert on request failure rate.
43
-
>
44
-
>
45
-
46
-
## See your alerts
47
-
You get an email when an alert changes state between inactive and active.
48
-
49
-
The current state of each alert is shown in the Alert rules tab.
50
-
51
-
There's a summary of recent activity in the alerts drop-down:
The history of state changes is in the Activity Log:
56
-
57
-

58
-
59
-
## How alerts work
60
-
* An alert has three states: "Never activated", "Activated", and "Resolved." Activated means the condition you specified was true, when it was last evaluated.
61
-
* A notification is generated when an alert changes state. (If the alert condition was already true when you created the alert, you might not get a notification until the condition goes false.)
62
-
* Each notification generates an email if you checked the emails box, or provided email addresses. You can also look at the Notifications drop-down list.
63
-
* An alert is evaluated each time a metric arrives, but not otherwise.
64
-
* The evaluation aggregates the metric over the preceding period, and then compares it to the threshold to determine the new state.
65
-
* The period that you choose specifies the interval over which metrics are aggregated. It doesn't affect how often the alert is evaluated: that depends on the frequency of arrival of metrics.
66
-
* If no data arrives for a particular metric for some time, the gap has different effects on alert evaluation and on the charts in metric explorer. In metric explorer, if no data is seen for longer than the chart's sampling interval, the chart shows a value of 0. But an alert based on the same metric is not be reevaluated, and the alert's state remains unchanged.
67
-
68
-
When data eventually arrives, the chart jumps back to a non-zero value. The alert evaluates based on the data available for the period you specified. If the new data point is the only one available in the period, the aggregate is based just on that data point.
69
-
* An alert can flicker frequently between alert and healthy states, even if you set a long period. This can happen if the metric value hovers around the threshold. There is no hysteresis in the threshold: the transition to alert happens at the same value as the transition to healthy.
70
-
71
-
## What are good alerts to set?
72
-
It depends on your application. To start with, it's best not to set too many metrics. Spend some time looking at your metric charts while your app is running, to get a feel for how it behaves normally. This practice helps you find ways to improve its performance. Then set up alerts to tell you when the metrics go outside the normal zone.
73
-
74
-
Popular alerts include:
75
-
76
-
*[Browser metrics][client], especially Browser **page load times**, are good for web applications. If your page has many scripts, you should look for **browser exceptions**. In order to get these metrics and alerts, you have to set up [web page monitoring][client].
77
-
***Server response time** for the server side of web applications. As well as setting up alerts, keep an eye on this metric to see if it varies disproportionately with high request rates: variation might indicate that your app is running out of resources.
78
-
***Server exceptions** - to see them, you have to do some [additional setup](../../azure-monitor/app/asp-net-exceptions.md).
79
-
80
-
Don't forget that [proactive failure rate diagnostics](../../azure-monitor/app/proactive-failure-diagnostics.md) automatically monitor the rate at which your app responds to requests with failure codes.
81
-
82
23
## How to set an exception alert using custom log search
83
24
84
25
In this section, we will go through how to set a query based exception alert. For this example, let's say we want an alert when the failed rate is greater than 10% in the last 24 hours.
0 commit comments