For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/integrations/alibaba-cloud.md. A documentation index is available at /llms.txt.

Alibaba Cloud

This product is not supported for your selected Datadog site. ().

Overview

Use the Alibaba Cloud integration to collect metrics and logs from your Alibaba Cloud services.

All use of Datadog Services in (or in connection with environments within) mainland China is subject to the disclaimer published in the Restricted Service Locations section on our website.

Setup

Fill out the following parameters to integrate Datadog with the Alibaba Cloud API.

Account name

Choose a name that helps you identify this Alibaba Cloud account in Datadog. The name is a label for the account in Datadog and does not need to match your Alibaba Cloud account ID.

AccessKey ID and AccessKey secret

  1. Enable Resource Center in your Alibaba Cloud account.

  2. In Resource Access Management (RAM), create a user with the following values:

    • User Login Name: Datadog
    • Display Name: Datadog
  3. Select Permanent AccessKey.

  4. Copy the AccessKey ID and AccessKey secret, and paste them in the corresponding Datadog account form fields.

  5. For the new user, select Add Permissions and add the following system policy:

    ReadOnlyAccess
    

    To collect Container Service for Kubernetes (ACK) metrics using Managed Service for Prometheus, also attach a custom policy that allows Datadog to install the ack-arms-prometheus add-on on your clusters:

    {
      "Version": "1",
      "Statement": [
        {
          "Effect": "Allow",
          "Action": "cs:InstallClusterAddons",
          "Resource": "*"
        }
      ]
    }
    
  6. Select Update. After approximately 15 minutes, metrics appear in Metric Explorer. Metrics are tagged with custom tags on your resources and with tags returned by the following APIs:

Account tags

Account tags are a list of key:value tags applied to all metrics, logs, and resources collected from the Alibaba Cloud account.

Note: The filters below evaluate tags assigned in your Alibaba Cloud environment.

Collect metrics

Metric collection is enabled by default. To limit the metrics Datadog collects, set the following filters:

  • Host filters: Limit metric collection to hosts matching these Alibaba Cloud tag filters. Datadog imports only hosts that match at least one tag.
  • Cluster filters: Limit metric collection to clusters matching these Alibaba Cloud tag filters.

Collect logs

Toggle Collect logs to collect logs from Alibaba Cloud Simple Log Service (SLS). Logs from SLS appear in the Log Explorer with the source alibaba-cloud.

By default, Datadog ingests all available logs from SLS. To limit collection, use one or both of the filter fields:

  • Project tag filters: Limit log collection to SLS projects with specified tags.
  • Logstore tag filters: Limit log collection to logstores with specified tags.

Note: Datadog applies project tag filters first, then logstore tag filters. If a project is excluded by its tag filter, all of its logstores are excluded as well.

Collect resources

Toggle Collect resources to collect your Alibaba Cloud resources. Resources are visible in the Datadog Resource Catalog.

Data Collected

Metrics

Events

Events from Alibaba Cloud are collected on a per Alibaba Cloud-service basis.

Troubleshooting

Need help? Contact Datadog support.

Further Reading

Additional helpful documentation, links, and articles: