Configuring Yandex Monium alerts for Yandex Cloud Backup resources
An alert is a sequence of named queries calculated once a minute. The resulting query value is compared to the preset threshold values. If a threshold is reached, Monium changes the alert status to Alarm or Warning and notifies the user via a notification channel.
You can configure an alert for any of the Yandex Cloud Backup metrics. We recommend creating alerts for the following events:
- New Cloud Backup agent version is available.
- Cloud Backup agent is unavailable.
- Backup operation failure.
Note
If a metric has never come to Monium before, the system will not be able to suggest this metric in the pop-up menu of the query builder. In which case enter your query in code mode in the query language.
Available agent versions
To create an alert to get notified about available agent versions:
-
Go to Monium
. -
In the left-hand panel, select
Alerts and SLOs, then Alerts. -
At the top right, click Create
and selectCustom. -
In the Name field, specify
agent_available_new_version. -
Under Alert configuration:
-
Click
to enable code mode. -
Enter a query in the query language:
{project = "folder__<folder_ID>", service = "__backup__", cluster = "default", resource_type = "agent", name = "agent_version_available", resource_name = "<VM_name>"}Where:
project: ID of the folder the VM is in. You can copy the folder ID on the top panel in the management console.service: Service name.cluster: Environment.resource_type: Resource type.name: Metric name.resource_name: VM name. To select all VMs, specify"*"instead of the VM name.
-
-
Under Alert conditions, specify the following:
- Comparison function:
Not equals to. - Warning: Delete the value.
- Alarm:
0.
- Comparison function:
-
Under Notifications, add the notification channels of interest.
-
Click Create.
Agent unavailable
To create an alert to get notified about the agent's unavailability:
-
Go to Monium
. -
In the left-hand panel, select
Alerts and SLOs, then Alerts. -
At the top right, click Create
and selectCustom. -
In the Name field, specify
agent_status_offline. -
Under Alert configuration:
-
Click
to enable code mode. -
Enter a query in the query language:
{project = "folder__<folder_ID>", service = "__backup__", cluster = "default", resource_type = "agent", name = "agent_alive", resource_name = "<VM_name>"}Where:
project: ID of the folder the VM is in. You can copy the folder ID on the top panel in the management console.service: Service name.cluster: Environment.resource_type: Resource type.name: Metric name.resource_name: VM name. To select all VMs, specify"*"instead of the VM name.
-
-
Under Alert conditions, specify the following:
- Comparison function:
Equals to. - Warning: Delete the value.
- Alarm:
0.
- Comparison function:
-
Under Notifications, add the notification channels of interest.
-
Click Create.
Backup operation failure
To create an alert to get notified about failed backup operations:
-
Go to Monium
. -
In the left-hand panel, select
Alerts and SLOs, then Alerts. -
At the top right, click Create
and selectCustom. -
In the Name field, specify
agent_operation_failure. -
Under Alert configuration:
-
Click
to enable code mode. -
Enter a query in the query language:
{project = "folder__<folder_ID>", service = "__backup__", cluster = "default", resource_type = "backup", name = "BackupError", action = "CompleteFailed", resource_name = "<VM_name>"}Where:
project: ID of the folder the VM is in. You can copy the folder ID on the top panel in the management console.service: Service name.cluster: Environment.resource_type: Resource type.name: Metric name.action: Action type.resource_name: VM name. To select all VMs, specify"*"instead of the VM name.
-
-
Under Alert conditions, specify the following:
- Comparison function:
Greater than. - Warning: Delete the value.
- Alarm:
0.
- Comparison function:
-
Under Notifications, add the notification channels of interest.
-
Click Create.