All Products
Search
Document Center

CloudFlow:View metrics and configure alert rules

Last Updated:Jul 08, 2024

After a workflow is executed, you can view the metrics about the workflow. You can also configure alert rules to monitor the statuses of the workflow. For example, you can configure an alert rule that specifies an alert is sent to the alert contact when a flow fails up to a specific number of times. This topic describes how to view the metrics of a workflow in the CloudFlow console and the Cloud Monitor console. This topic also describes how to configure an alert rule in the CloudMonitor console.

View metrics

View metrics in the CloudFlow console

  1. Log on to the CloudFlow console. In the top navigation bar, select a region.

  2. On the Workflows page, click the workflow whose metrics you want to view.

  3. On the details page of the workflow, click the Metrics tab and set the time range of the metrics that you want to view. Then, you can view the metric details of the time range.

    lQLPJyBq_NLenFXNAonNB0GwcqmWTCkv5FoGTcyfS65pAA_1857_649

    You can click the image.png icon in the upper-right corner of a metric card to go to the CloudMonitor console and configure alert rules. For more information, see Configure alert rules.

View metrics in the Cloud Monitor console

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Cloud Service Monitoring > Cloud Service Monitoring. In the search box of the Cloud Service Monitoring page, enter Serverless Workflow and then click CloudFlow.

  3. On the Serverless Workflow page, select the region in which the workflow that you want to view resides and find the workflow. Click Monitoring Charts in the Actions column that corresponds to the workflow, set the query time range, and view the workflow metrics of the time range.

    lQLPJyJO1qUHSNXNAbDNBomwIrVuqf5xhhQGTczMZFPQAA_1673_432

Configure alert rules

You must create an alert contact before you configure an alert rule. For more information, see Create an alert contact.

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Cloud Service Monitoring > Application Groups. On the Application Groups page, click Create Application Group.

  3. In the Create Application Group panel, select Manually Create for the Creation Method parameter, set Application Group Name and Alert Contact Group, and then click OK.

    image.png

    After the application group is created, you are redirected to the details page of the application group. Click Group Resources in the left-side navigation pane of the application group.

  4. Click + Manage Services and Resources. In the Add/Modify Group Resources panel, enter and select Serverless Workflow in the Associated Cloud Services search box to associate CloudFlow with CloudMonitor. Select a region and the names of the workflows that you want to monitor and then click OK.

  5. In the left-side navigation pane of the Application group details page, click Alert Rules. On the Alert Rules page, click + Create Alert Rule. In the Create Alert Rule panel, set Mute For, Effective Period, and Alert Contact Group, and click + Add Rule to select a metric type from the Simple Indicators, Combined Indicators, Expression, and Dynamic Threshold options.

    image

  6. In the Set Rule Description panel, set the metrics that you want to monitor and the metric thresholds, and then click OK.

    image

  7. Check the information again and then click OK.

    image

    When the configured alert is triggered, CloudMonitor sends alert information to the contact.

References

Cloud service monitoring