Monitoring Alibaba Cloud (public preview)
The Alibaba Cloud (AliCloud) agent collects data from Alibaba CloudMonitor APIs and monitors resources of each cloud service under your Alibaba Cloud account.
For more information, see CloudMonitor.
Monitored services
- The displayed metrics values are delayed ensuring consistency.
- This delay depends on the actual status of the AliCloud service and the availability of data then.
Installation
AGENT_MAX_MEM to a value that is greater than the
default value of 544 MiB. For example, to set the agent memory to 1
GB, you can set AGENT_MAX_MEM=1024M.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.
-
Retrieve access key pair to verify your identity of Alibaba Cloud resources
-
Install the Instana host agent.
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
Retrieve AccessKey pair
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
- The AccessKey ID is used to verify the identity of the user.
- The AccessKey secret is used to encrypt and verify the signature string. You must keep your AccessKey secret strictly confidential.
Configuration
Enable Monitoring for Alibaba Cloud Monitoring
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>'
Enable Monitoring for specific services
For each service, you need to add the 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 false in
<agent_install_dir>/etc/instana/configuration.yml
as described on the individual service pages.
Monitoring services through individual AccessKey pair
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.
API Operation Billing
-
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 needed. 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.