Application Monitoring eBPF Edition of Application Real-Time Monitoring Service (ARMS) is an end-to-end observability service developed for Kubernetes clusters. You can manually install the ack-arms-cmonitor agent for a Kubernetes cluster to monitor the metrics, application traces, logs, and events of the cluster. This topic describes how to connect an application deployed in an Alibaba Cloud Container Service for Kubernetes (ACK) cluster to Application Monitoring eBPF Edition.
Prerequisites
Application Monitoring eBPF Edition is in public preview free of charge. If you have any questions, join the DingTalk group (ID: 35568145) to obtain technical support.
ARMS is activated. For more information, see Activate ARMS.
An ACK dedicated cluster, an ACK managed cluster, or a registered cluster is created. This topic is applicable to these ACK cluster types. For information about how to create a cluster in ACK, see the following topics:
The environment meets the requirements of Application Monitoring eBPF Edition. For more information, see Requirements and limitations on operating systems of Application Monitoring eBPF Edition.
Usage notes
To connect an application deployed in an ACK cluster to Application Monitoring eBPF Edition, you need to install the ack-arms-cmonitor agent for a Kubernetes cluster to monitor the metrics.
Before the installation, you must check whether the cluster has ARMS Addon Token. Otherwise, you have no sufficient permissions to perform subsequent operations. If ARMS Addon Token exists, you are authorized and can install the ack-arms-cmonitor agent without a password. Then, you can use Application Monitoring eBPF Edition. If the cluster does not have ARMS Addon Token, you need to manually attach the policies of ARMS and Managed Service for OpenTelemetry to your worker RAM role. Perform the following operations to check whether ARMS Addon Token exists and how to attach the policies to the worker RAM role:
ARMS Addon Token may not exist in specific ACK managed clusters. If you use an ACK managed cluster, we recommend that you first check whether ARMS Addon Token exists. If ARMS Addon Token does not exist, you must manually grant permissions.
By default, ACK dedicated clusters do not have ARMS Addon Token. You must manually grant permissions.
Install the ack-arms-cmonitor agent
Install the agent for an existing application
If the ack-arms-cmonitor agent has been installed in your application, check whether the version is 4.0.0 or later. Log on to the ACK console, choose in the left-side navigation pane of the cluster details page. If the version is earlier than 4.0.0, click Upgrade to upgrade the agent to the latest version. To install the ack-arms-cmonitor agent, perform the following steps:
Log on to the ACK console. In the left-side navigation pane, click Clusters. On the Clusters page, click the name of the cluster.
In the left-side navigation pane, choose Operations > Cluster Topology.
On the Cluster Topology page, click Install. The ACK console automatically installs the agent.
NoteThe default namespace is arms-prom.
If you are using an ACK dedicated cluster, update the AccessKey pair.
In the left-side navigation pane, choose
.Find arms-cmonitor and click Update. Set the
accessKey
andaccessKeySecret
parameters to the AccessKey ID and secret of your Alibaba Cloud account. For more information, see Obtain the AccessKey pair of the primary center.ImportantYou must make sure that the AliyunARMSFullAccess and AliyunSTSAssumeRoleAccess policies are attached to your Alibaba Cloud account.
Click OK.
Install the agent while creating an application
Log on to the ACK console. On the Clusters page, find the cluster and click Applications in the Actions column.
On the Deployments page, click Create from YAML in the upper-right corner of the page.
Select a template from the Sample Template drop-down list and add the following
labels
to the spec.template.metadata directory in the YAML template.labels: armseBPFAutoEnable: "on" armseBPFCreateAppName: "<your-deployment-name>" //Replace <your-deployment-name> with the application name.
The following YAML template shows how to create a Deployment and enable Application Monitoring eBPF Edition:
References
After you connect your application in an ACK cluster to Application Monitoring eBPF Edition, you can monitor the metrics, upstream and downstream dependencies, and topology of the application. For more information, see Application details.