VK Cloud logo

Triggers

Creating a trigger

  1. Go to the VK Cloud management console.

  2. Add a trigger using one of the following methods:

    • From the Triggers tab:
      1. Go to Monitoring → Alerting.
      2. Open the Triggers tab and click Add.
    • From the monitoring page:
      1. Go to Monitoring.
      2. In the Alerting section, click Create triggers.
  3. Select a data source:

  4. Specify the trigger name.

  5. (Optional) Click plus-icon Add description and add a trigger description.

  6. Specify the trigger parameters:

    • 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) plus-icon 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.
  7. Select an existing notification channel from the list or the Create new channel option. If you are creating a new notification channel, specify its parameters:

    • Channel name: enter a name for the channel.
    • Notification type: select Email or SMS.
    • Recipient: enter the email address or phone number of the notification recipient.
  8. (Optional) Click plus-icon Add channel to add another notification channel and specify its parameters.

  9. Click Create trigger.

Creating a trigger from logs

  1. Go to the VK Cloud management console.

  2. Go to the Monitoring → Logging section.

  3. Find the required event.

  4. Add a trigger using one of the following methods:

    • In the Stream view, click more-icon for the required log and select Create alert.
    • In the Table view, click the required log, then click the Create trigger button on the panel that opens.
  5. Specify the trigger name.

  6. (Optional) Edit the query using the search query language.

  7. Click the Verify query button.

    If the query is correct, a preview chart of trigger firings based on the records found will be displayed on the right side of the screen.

  8. Select an existing notification channel from the list or the Create new channel option. If you are creating a new notification channel, specify its parameters:

    • Channel name: enter a name for the channel.

    • Notification type: select Email or SMS.

    • Recipient: enter the email address or phone number of the notification recipient.

  9. (Optional) Click plus-icon Add channel to add another notification channel and specify its parameters.

  10. Click the Create trigger button.

Editing a trigger

  1. Go to the VK Cloud management console.
  2. Go to Monitoring → Alerting.
  3. Click more-icon for the required trigger and select Edit.
  4. Enter the required changes.
  5. Click Save.

Starting a trigger

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:

  1. Go to the VK Cloud management console.
  2. Go to Monitoring → Alerting.
  3. Click more-icon for the required trigger, select Enable, and confirm the action.

Deleting a trigger

  1. Go to the VK Cloud management console.
  2. Go to Monitoring → Alerting.
  3. Click more-icon for the required trigger and select Delete.
  4. Confirm the deletion.
Was this article helpful?