Triggers
-
Go to the VK Cloud management console.
-
Add a trigger using one of the following methods:
- From the Triggers tab:
- Go to Monitoring → Alerting.
- Open the Triggers tab and click Add.
- From the monitoring page:
- Go to Monitoring.
- In the Alerting section, click Create triggers.
- From the Triggers tab:
-
Select a data source:
Monitoring— based on metrics from the Cloud Monitoring serviceLogging— based on records from the Cloud Logging serviceEvent log— based on events from the Cloud Audit service Logging
-
Specify the trigger name.
-
(Optional) Click
Add description and add a trigger description.
-
Specify the trigger parameters:
MonitoringLoggingEvent log- Resource type: select from the list the VK Cloud resource type from which monitoring data is collected.
- Source: select from the list a source (VM name, DB, container, etc.).
- Metric name: select the required metric from the list. If the list is empty, monitoring is not enabled for the instance. Install the monitoring agent on the required VM.
- (Optional)
Add label: click the button and select the label name and value from the lists.
- Trigger condition: select a comparison operation from the list and specify the threshold value.
- Comparison interval: select from the list the interval during which the condition must be met for the trigger to fire.
-
Select an existing notification channel from the list or the
Create new channeloption. If you are creating a new notification channel, specify its parameters:- Channel name: enter a name for the channel.
- Notification type: select
EmailorSMS. - Recipient: enter the email address or phone number of the notification recipient.
-
(Optional) Click
Add channel to add another notification channel and specify its parameters.
-
Click Create trigger.
- Go to the VK Cloud management console.
- Go to Monitoring → Alerting.
- Click
for the required trigger and select Edit.
- Enter the required changes.
- Click Save.
If a trigger fires more than 100 times within 24 hours, it is automatically disabled. You will receive an email with recommendations.
The most common reason for frequent trigger firings is incorrect configuration. Before starting the trigger, check that it is configured correctly.
To start a trigger:
- Go to the VK Cloud management console.
- Go to Monitoring → Alerting.
- Click
for the required trigger, select Enable, and confirm the action.
- Go to the VK Cloud management console.
- Go to Monitoring → Alerting.
- Click
for the required trigger and select Delete.
- Confirm the deletion.