Set up alerts

Updated at:

CloudLens for RDS provides built-in alert rule templates that you can use to monitor ApsaraDB RDS instances in real time.

Prerequisites

You have completed the data access configuration. For more information, see Enable log collection.

Background information

CloudLens for RDS includes the following built-in alert resources: alert rule templates, the SLS audit built-in alert policy, the SLS audit built-in action policy, the SLS audit built-in user group, and the SLS audit built-in content template. These resources are related as follows:

  • Alert rule templates specify the SLS audit built-in alert policy.

    Note

    The alert rule templates in CloudLens for RDS are bound to the SLS audit built-in alert policy. This binding cannot be changed.

  • The SLS audit built-in alert policy specifies the SLS audit built-in action policy.

  • The SLS audit built-in action policy specifies the SLS audit built-in user group and the SLS audit built-in content template.

You can use the built-in alert resources directly or create custom ones. To create custom resources, see Create an alert rule for logs.

Step 1: Create a user

  1. Log on to the Simple Log Service console.

  2. In the Log Application area, on the Cloud Service Lens tab, click CloudLens for RDS.

  3. In the left-side navigation pane, click Anomaly Detection.

  4. On the Alert Center page, choose Notification Objects > Users.

  5. Click Create to create a user. For more information, see Create users.

Step 2: Add the user to the SLS audit built-in user group

  1. On the Alert Center page, choose Notification Objects > User Groups.

  2. In the user group list, find SLS audit built-in user group and click Modify.

  3. In the Modify User Group panel, move the new user from the Available Members area to the Selected Members area, and then click Confirm.

Step 3: Create an alert rule

  1. On the Alert Rules tab, click the image icon next to Create Alert.

  2. Click Create from Template.

  3. In the Create from Template panel, click ApsaraDB RDS Operation Compliance.

  4. In the list of alert rule templates, find the template that you want to use.

  5. Create the alert rule. For information about how to modify parameters, see Create a monitoring alert rule.

    After you create the alert rule, Simple Log Service begins real-time monitoring of ApsaraDB RDS. To add more alert rules, click Create Alert.

    For more information about the alert rule parameters, see ApsaraDB RDS Security.

Related operations

Actions

Description

Disable an alert rule

If you disable an alert rule, it no longer triggers alerts and its Status changes to Disabled.

This operation preserves the rule's configuration. You can re-enable the rule later without reconfiguring it.

Temporarily disable an alert rule

If you temporarily disable an alert rule, it does not trigger alerts for a specified period.

Resume an alert rule

You can resume a temporarily disabled alert rule at any time.

Delete an alert rule

This operation permanently deletes the rule's configuration. To enable monitoring again, you must create and configure a new rule.

Upgrade an alert rule

Simple Log Service prompts you to upgrade alert rules when a major feature update is released or when an upgrade requires additional configuration. In most cases, rules are upgraded automatically.

Manually initialize alerts

If alert-related assets are accidentally deleted or fail to initialize, use this operation to force a re-initialization.