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:
- A new Cloud Backup agent version is out.
- Cloud Backup agent unavailable.
- Backup operation failed.
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:
-
On the Monium
home page, select Alerts on the left. -
At the top right, click Create alert → Custom.
-
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:
- Comparison function:
Not equals to. - Warning: Delete the value.
- Alarm:
0.
- Comparison function:
-
Under Notifications, add the notification channels of interest.
-
Click Create alert.
Agent unavailable
To create an alert get notified if the agent is unavailable:
-
On the Monium
home page, select Alerts on the left. -
At the top right, click Create alert → Custom.
-
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:
- Comparison function:
Equals to. - Warning: Delete the value.
- Alarm:
0.
- Comparison function:
-
Under Notifications, add the notification channels of interest.
-
Click Create alert.
Backup operation failed
To create an alert get notified about failed backup operations:
-
On the Monium
home page, select Alerts on the left. -
At the top right, click Create alert → Custom.
-
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 = "agent", 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:
- Comparison function:
Greater than. - Warning: Delete the value.
- Alarm:
0.
- Comparison function:
-
Under Notifications, add the notification channels of interest.
-
Click Create alert.