Configuring Yandex Monium alerts for Yandex Cloud Backup resources
An alert is a check that determines a status every minute based on predefined conditions. Each status has its own conditions, and the alert switches to that status when those conditions are met. Depending on the alert type, the conditions apply to query results, SLO metrics, or the statuses of other alerts.
Notifications about status changes are sent via the configured channels.
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.