Alerts in Yandex Monitoring are used to notify Yandex.Cloud users when metrics change.
For instance, you can set up an alert to be notified when your cloud resource status changes, so that you can respond to issues in time.
An alert is a function on the metric value that is calculated once per minute. The resulting value is compared with the preset thresholds.
Alerts can have the following statuses:
||The metric value is within the normal range|
||The metric value has reached the
||The metric value has reached the critical
||Not enough metric data to calculate the alert function|
||Can't calculate the alert value|
The alert parameters are set at alert creation. After saving the alert, you can edit the parameters.
The main alert parameters are the metrics to use for calculating the function. You can use [queries](data-model. md#queries) to calculate metrics for the alert.
For example, you can create a single alert for multiple VM instances.
You can set the metric thresholds that Monitoringtrigger your alerts for the
The time period for the alert aggregation function.
You can use the evaluation window to avoid reacting to spikes in metrics and only react to changes over extended periods of time.
You can pick from the preset window values or set up your own window in the format:
1h: 1 hour.
1m: 1 minute.
1s: 1 second.
The minimum value is 1 minute (
The maximum values is 1 hour (
For example, the value
3m 45ssets a time window of 3 minutes and 45 seconds.
This function is applied to the metric values within the evaluation window.
The resulting function value is compared with the specified alert thresholds.
If the value meets the alert threshold, Yandex Monitoring changes its status.
|Average||Calculates the average value over the period for each metric.
For example, if the query returns two metrics, then Monitoring calculates the average value for each of them within the given window
|Count||Calculates the number of metric values within the specified period|
|Last||Uses the last metric value of the given period. If the metric values can't be obtained, Yandex Monitoring changes the alert status to
|Maximum||Uses the maximum metric value over the period|
|Minimum||Uses the minimum metric value over the period|
|Sum||Calculates the sum of values of each metric over the specified period|
For example, if you want to keep track of the last metric value over the last 15 minutes, then select the Last function and set Evaluation window to
You can set up a notification channel to get notified when an alert changes to a different status.
The channel contains information about recipients and how to send notifications.
You can use the same channel for multiple alerts.
Notification channel parameters
Recipients. List of users who get notified if the alert function is triggered.
You can only specify a Yandex.Cloud account as a notification recipient.
To send an SMS, link a phone number to the user account.
Learn more about Yandex.Cloud accounts in the documentation for Yandex Identity and Access Management.
Notification method. The method for notifying users, such as email or SMS.
After you create a channel, the additional parameters become available:
- Notify about the status. Select the list of alert statuses to send to the notification channel.
- Re-notification. Select the period for Monitoring to repeat notifications on the same alert status.
Each sending can have one of the following statuses:
||The notification has been sent successfully|
||Couldn't send the notification due to an error|
||Couldn't send the notification due to restrictions on the sending method|