All Products
Search
Document Center

Application Real-Time Monitoring Service:Create an action integration to execute an alerting plan

Last Updated:Jun 26, 2024

After you receive an alert notification, you need to execute a preset alerting plan in the ARMS to respond to the alert. This topic describes how to create an action integration in ARMS to manually execute an alerting plan. To automatically execute an alerting plan, you can configure an action integration in a notification policy. This way, alert notifications are sent when an alert is triggered or cleared.

Prerequisites

  • Your service is monitored in ARMS. For more information, see Activate ARMS.

  • Monitoring metrics and alert rules are configured.

Overview

  • ARMS supports two action integration types:

    • Function Compute

    • Webhook

  • Action integrations support static and dynamic parameters. Dynamic parameters are dynamically extracted from alert content.

Create a webhook action integration

You can use a webhook action integration to manually send alert notifications to a specified public endpoint. Perform the following steps to create a webhook action integration:

  1. Log on to the ARMS console. In the left-side navigation pane, choose Alert Management > Integrations.

  2. On the Integrations page, click the Action Integration tab and click Webhook.

  3. In the Create Webhook Action Integration dialog box, specify the name, description, URL, and parameters, and then click Save.

    image

Create a Function Compute action integration

As a serverless compute service, Function Compute (FC) is accessible to internal networks and support synchronous execution. Perform the following steps to create a Function Compute action integration:

  1. Log on to the ARMS console. In the left-side navigation pane, choose Alert Management > Integrations.

  2. On the Integrations page, click the Action Integration tab and click Function Compute.

  3. In the Create FC Action Integration dialog box, specify the parameters as prompted and click Save.

    image

Note
  • When you create a Function Compute (FC) action integration, select a function that can be triggered by alert events.

  • When you create a Function Compute (FC) action integration, you can specify ${xxx} to define and map variables.

Test

After you configure an action integration, you can select a historical alert or specify a sample parameter for testing.

Select a historical alert

  1. On the Action Integration tab, find the action integration and click Test in the Actions column.

  2. In the Action Integration Test dialog box, click the Alerting Test tab.

  3. Select a historical alert and click Start Test.

Specify a sample parameter

  1. On the Action Integration tab, find the action integration and click Test in the Actions column.

  2. In the Action Integration Test dialog box, click the Parameter Simulation Test tab.

  3. Specify a sample parameter in the Variables section and click Start Test.

Execute an action integration

Receive alert notifications

If a metric becomes abnormal and triggers an alert, alert notifications are sent.

Execute an alerting plan

After you receive alert notifications, perform the following operations:

  1. Log on to the ARMS console.

  2. In the left-side navigation pane, choose Alerts > Alert Sending History.

  3. On the Alert Sending History page, find the alert, click image in the Actions column, and then click Perform.

    Note
    • For a webhook action integration, after you click Perform, an HTTP request is sent to the preset webhook URL.

    • For a Function Compute (FC) action integration, the configured function is manually triggered to execute the alert processing logic.

Verify the result

After you execute an alerting plan, check whether the webhook or Function Compute (FC) responds as expected and whether the alert is handled.

  1. On the Alert Sending History page, click the alert.

  2. On the Alert Details page, click the Action tab.

    image

  3. Find the action that you want to view and click Action Details in the Actions column.