The Alibaba Cloud Agent collects data from Alibaba CloudMonitor APIs, and monitors resources of each cloud service under your Alibaba Cloud account.
Note: Due to the nature of the Alibaba CloudMonitor API, a delay in metrics retrieval is possible.
Note: To collect data from Alibaba CloudMonitor API managed by Alibaba, you need to install an agent.
If you want to monitor an AliCloud Elastic Compute Service Virtual Machine, a Kubernetes cluster running on AliCloud either installed and managed by you or using an AliCloud Elastic Kubernetes Service, or an AliCloud Elastic Container instance, refer to the Install the Instana Host Agent documentation.
Install the Instana host agent.
Note: The agent can be both installed and run in AliCloud and outside host that can access the Alibaba Cloud public endpoint
Enable the AliCloud sensor in the agent's configuration.yaml file. A minimal sensor configuration looks like the following Configuration
An AccessKey pair consists of an AccessKey ID and an AccessKey secret. Create and obtain an AccessKey pair for an Alibaba Cloud account or a Resource Access Management(RAM) user. When the AliCloud sensor calls CloudMonitor API operations, the AccessKey pair must be provided to verify your identity.
Refer to Obtain an AccessKey pair
Enable the AliCloud sensor in the agent's configuration.yaml file as follows:
com.instana.plugin.alicloud: # Valid values: true, false enabled: true # enabled (true) by default # Alibaba Cloud AccessKey ID is used to verify the identity of the user accessKeyId: '<YOUR_ALICLOUD_ACCESS_KEY_ID>' # Alibaba Cloud AccessKey secret is used to encrypt and verify the signature string accessKeySecret: '<YOUR_ALICLOUD_ACCESSKEY_SECRET>'
For each service, you need to add the required permissions as on the individual service pages. See the Monitored Services section.
If you want to exclude a service from monitoring, you don't need to add the permissions for the service.
Alternatively, another way to exclude a service from monitoring is to set the enabled flag to
<agent_install_dir>/etc/instana/configuration.yml as described on the individual service pages.
For each service, you can configure the individual AccessKey pair and it overrides the AccessKey pair in the
com.instana.plugin.alicloud section. Refer to the Monitored Services section.
Note: The instances of a specific service must be in the same Alibaba account, and only one AccessKey pair can be used for the service. It's not supported to use multiple AccessKey pairs for a service.
The sensors access the Alibaba APIs of a product (RocketMQ or Apsara RDS MySQL). You must first activate the product on the Alibaba Cloud console if required. It costs the product API operation bandwidth.
The sensors call CloudMonitor API operations to query the metrics data. The operations cost CloudMonitor Query Data API quota.