All Products
Search
Document Center

CloudMonitor:Use the dashboard feature of Hybrid Cloud Monitoring to monitor Alibaba Cloud services across accounts

Last Updated:Nov 08, 2023

You can use the management account of a resource directory or the delegated administrator account for CloudMonitor to manage the metrics of Alibaba Cloud services across accounts. You can import the metrics to a namespace and view the monitoring data in charts. You can use a monitoring dashboard in Hybrid Cloud Monitoring to create custom charts. You can also configure Prometheus alert rules to receive alert notifications.

Prerequisites

Background information

The following figure shows the procedure for using the dashboard feature of Hybrid Cloud Monitoring to monitor Alibaba Cloud services across accounts.通过企业监控大盘跨账号监控阿里云产品

Step 1: Create a metric import task for cross-account monitoring

You can use the management account of a resource directory or the delegated administrator account for CloudMonitor to create a metric import task. You can import the metric data of Alibaba Cloud services that belong to specific members in the resource directory to the namespace that you create. Then, you can view the imported metric data in charts.

  1. Log on to the CloudMonitor console.
  2. In the left-side navigation pane, choose Hybrid Cloud Monitoring > Namespace.

  3. Optional. Find the namespace and click 人员.jpg, 收藏.jpg, or 表盘.jpg in the Metric Data column.

    Note

    This operation is required only if two or more namespaces are displayed on the Namespace page.

  4. On the Alibaba Cloud Service Metrics tab, click Add Account.

  5. In the Add Account dialog box, select a member account from the Resource Directory Member Account drop-down list and click OK.

  6. Click the image.png icon to the right of the desired account.

  7. In the Add Product dialog box, select the desired cloud product and click OK.

  8. Click the cloud product and then click Add metric.

  9. In the Add metric dialog box, select the metrics that you want to add and click OK.

Step 2: View the monitoring charts for the metrics of Alibaba Cloud services

You can use the management account or the delegated administrator account to view the monitoring charts for the metrics of Alibaba Cloud services that belong to the selected member.

  1. On the Namespace tab, click the namespace.

  2. On the Namespace Details page, select a metric and view the monitoring chart on the right.

Step 3: Create custom charts for the metrics of Alibaba Cloud services

You can use the management account or the delegated administrator account to create a monitoring dashboard for the metrics of Alibaba Cloud services and create custom charts.

  1. In the left-side navigation pane, choose Hybrid Cloud Monitoring > Dashboards.

  2. On the Dashboards page, click View Dashboard.

  3. In the left-side navigation pane of the dashboard, click the image.png icon. Then, click Add an empty panel.

  4. On the Edit Panel page, configure metrics and monitoring charts.

    • On the Query tab, select the namespace and select metrics.

    • On the Panel tab, specify a panel title and enter a description. Then, configure visualization and other settings.

  5. In the upper-right corner of the Edit Panel page, click Apply.

    The monitoring chart is created.

  6. In the upper-right corner, click the 保存监控大盘 icon. Then, specify the name of the dashboard and the directory in which the dashboard resides.

  7. Click Save.

    The dashboard is created.

  8. In the left-side navigation pane of the dashboard, choose Dashboard > Manage. Then, click the dashboard name to view the dashboard.

Step 4: Configure an alert rule for the metrics of Alibaba Cloud services

You can use the management account or the delegated administrator account to configure an alert rule for the metrics of Alibaba Cloud services. If the specified conditions are met, alert notifications are sent.

  1. In the left-side navigation pane, choose Hybrid Cloud Monitoring > Namespace.

  2. In the upper-left corner of the Namespace page, click Create Alert Rule.

  3. In the Create Alert Rule panel, enter a name in the Rule Name field, select a namespace from the Namespace drop-down list, configure the Alert Expression (PromQL) parameter, and then select an alert contact group from the Alert Contact Group drop-down list.

  4. Click OK.