All Products
Search
Document Center

Managed Service for Grafana:Add and use a CloudMonitor data source

Last Updated:Mar 11, 2026

Managed Service for Grafana includes a built-in CloudMonitor data source plug-in called CMS Grafana Service. Connect this plug-in to stream CloudMonitor metrics directly into Grafana dashboards in real time -- no data export or migration required.

This guide walks you through adding the CloudMonitor data source to a Grafana workspace and creating dashboard panels to visualize monitoring metrics.

Note

The CloudMonitor plug-in only displays metrics in Grafana dashboards. You must manually configure alert rules and dashboard layouts. For out-of-the-box dashboards and alert rules, use Managed Service for Prometheus instead.

Prerequisites

Before you begin, make sure you have:

  • A Managed Service for Grafana workspace with an accessible URL

  • Your Alibaba Cloud account ID (hover over the avatar in the upper-right corner of the Alibaba Cloud Management Console to find this value)

  • An AccessKey pair (AccessKey ID and AccessKey secret) for your Alibaba Cloud account or a RAM user -- see Obtain an AccessKey pair

Note

If you use a RAM user, the RAM user must belong to your Alibaba Cloud account and have read permissions on CloudMonitor.

Step 1: Log on to Grafana

  1. Log on to the Managed Service for Grafana console. In the left-side navigation pane, click Workspace Management.

  2. On the Workspace Management page, find the target workspace and click the URL in the URL column to open Grafana.

Note

You can log on with the Grafana administrator account and the password you configured when creating the workspace, or click Sign in with Alibaba Cloud to use your current Alibaba Cloud account.

Step 2: Add the CloudMonitor data source

The navigation path differs slightly between Grafana versions. The configuration parameters are the same for both.

Grafana 9.x: In the left-side navigation pane, choose image > Add data source.

Grafana 10.x: On the Grafana homepage, click the image icon. In the left-side navigation pane, choose Management > Data sources, and then click + Add data source.

After you navigate to the Add data source page, complete the following steps:

  1. In the search box, enter CMS Grafana Service and click the result that appears.

  2. On the Settings tab, configure the following parameters.

    ParameterDescription
    NameData source display name. Default: CMS Grafana Service.
    Aliyun UserIdYour Alibaba Cloud account ID. Hover over the avatar in the upper-right corner of the Alibaba Cloud Management Console to find this value.
    AccessKeyIdThe AccessKey ID of your Alibaba Cloud account or RAM user.
    AccessKeyThe AccessKey secret of your Alibaba Cloud account or RAM user.
  3. Click Save & test. If the message Data source is working appears, the data source is ready to use.

Step 3: Create a dashboard panel

After you add the data source, create a dashboard panel to visualize CloudMonitor metrics.

Grafana 9.x: In the left-side navigation pane, choose image > New dashboard, and then click Add a new panel.

Grafana 10.x: On the Grafana homepage, click the image icon. In the left-side navigation pane, click Dashboards. Select New dashboard from the New drop-down list, and then click + Add visualization. On the Select data source page, select CMS Grafana Service.

After the panel editor opens, complete the following steps:

  1. Grafana 9.x only: On the Query tab, select CMS Grafana Service from the Data source drop-down list.

  2. In the A section, configure the query parameters.

    ParameterDescription
    NamespaceThe namespace to which monitoring data is reported. Enter a name in the acs_service name format. For more information about the namespaces for different cloud services, see Appendix 1: Metrics.
    MetricThe name of the monitoring metric whose data is reported. For more information about the monitoring metrics for different cloud services, see Appendix 1: Metrics.
    PeriodThe aggregation interval in seconds. For more information about the time intervals for different cloud services, see Appendix 1: Metrics.
    GroupThe application group name and ID associated with the metric. Find this on the Application Groups page in the CloudMonitor console. See Application groups.
    DimensionsKey-value pairs that filter metrics to specific resources. You can specify multiple dimensions at a time. Example: instanceId:i-2ze2d6j5uhg20x47****. For more information, see Appendix 1: Metrics.
    Y-columnThe aggregation method for the metric values: Average, Maximum, Minimum, or Sum. For more information, see Appendix 1: Metrics.

    Grafana 9.x:

    image

    Grafana 10.x:

    image

  3. In the right-side pane, set the panel title, visualization type, and graph styles.

  4. Click Apply.

  5. In the upper-right corner, click the Save icon. Enter a dashboard name, select a folder, and click Save.

Step 4: View monitoring data

To view saved dashboards:

Grafana 9.x: In the left-side navigation pane, choose image > Browse. Find the folder and click the dashboard name.

Grafana 10.x: On the Grafana homepage, click the image icon. In the left-side navigation pane, click Dashboards. Find the folder and click the dashboard name.