Alibaba Cloud Application Monitoring eBPF Edition is an all-in-one observability product for Kubernetes clusters. After you manually install the Application Monitoring eBPF Edition component for a Kubernetes cluster, you can view its metrics, application traces, logs, and events.
Prerequisites
Application Monitoring eBPF Edition is in public preview. During the public preview, you can use Alibaba Cloud Application Monitoring eBPF Edition for free. If you have any questions, you can join the Application Monitoring eBPF Edition support DingTalk group (Group ID: 35568145) for help.
ARMS is activated. For more information, see Activate and upgrade ARMS.
A Kubernetes cluster is created. Application Monitoring eBPF Edition currently supports only ACK clusters and registered clusters. The methods for creating these clusters are as follows:
Confirm that your environment supports Application Monitoring eBPF Edition. For more information, see Requirements and limitations for Application Monitoring eBPF Edition.
Connection instructions
To connect your Kubernetes cluster to Application Monitoring eBPF Edition, you must install the Application Monitoring eBPF Edition component for the cluster.
Before installation, check whether the target cluster has an ARMS Addon Token. If an ARMS Addon Token exists, ARMS performs passwordless authorization, and you can use Application Monitoring eBPF Edition after the component is installed. If an ARMS Addon Token does not exist, a permission error occurs. In this case, you must manually add the access policies for ARMS and Tracing Analysis. The following sections describe how to check for an ARMS Addon Token and manually add access policies.
ACK managed clusters: Some ACK managed clusters may not have an ARMS Addon Token. For these clusters, you must first check whether an ARMS Addon Token exists. If it does not, you must manually grant permissions.
ACK dedicated clusters: By default, ACK dedicated clusters do not support ARMS Addon Tokens. Therefore, you must manually grant permissions.
Install the Application Monitoring eBPF Edition component
Install the component for an existing application
If the Application Monitoring eBPF Edition component is already installed in your application, go to the page for the target cluster in the Container Service Management Console. On this page, check whether the version of the ack-arms-cmonitor component is 4.0.0 or later. If not, click Upgrade to upgrade the component to the latest version.
Log on to the Container Service for Kubernetes (ACK) console. On the Clusters page, click the name of the target cluster.
In the navigation pane on the left, choose Operations Management > Cluster Topology.
On the Cluster Topology page, click Start Installation. The ACK console automatically installs the Application Monitoring eBPF Edition component.
NoteThe default namespace is arms-prom.
If you use an ACK dedicated cluster, update the AccessKey pair configuration.
In the navigation pane on the left, choose .
Find arms-cmonitor and click Update. Set
accessKeyandaccessKeySecretto the AccessKey ID and AccessKey secret of your Alibaba Cloud account. For more information, see Obtain an AccessKey pair.ImportantConfirm that the Alibaba Cloud account has the AliyunARMSFullAccess and AliyunSTSAssumeRoleAccess permissions.
Click OK.
Install the component when you create an application
Log on to the Container Service for Kubernetes (ACK) console. On the Clusters page, find the target cluster. In the Actions column, click Application Management.
On the Stateless page, click Create with YAML.
Select Sample Template. In the Template field, which is in YAML format, add the following
labelsunder the spec.template.metadata level.labels: armseBPFAutoEnable: "on" armseBPFCreateAppName: "<your-deployment-name>" # Replace <your-deployment-name> with your application name.The following code provides a complete sample YAML template for creating a stateless (Deployment) application and enabling ARMS Application Monitoring eBPF Edition:
References
After you connect your application to Application Monitoring eBPF Edition, you can view key metrics, upstream and downstream dependent components, and topology graphs for your ACK cluster application. For more information, see Application details.