Application Monitoring eBPF is an end-to-end observability service for Kubernetes clusters. After you manually install Application Monitoring eBPF for a Kubernetes cluster, you can view the metrics, application links, logs, and events of the cluster.
Prerequisites
Application Monitoring eBPF is currently being public preview. You can use Alibaba Cloud Application Monitoring eBPF for free during the public preview period. If you have any questions, contact the Application Monitoring eBPF Q&A DingTalk group (group ID: 35568145) for help.
ARMS is activated. For more information, see Activate and upgrade ARMS.
An ACK cluster is created. Application Monitoring eBPF supports only ACK clusters. You can use the following methods to create clusters:
The Application Monitoring eBPF is supported in the current environment. For more information, see application monitoring requirements and limits.
Description
Install the Application Monitoring eBPF component for a Kubernetes cluster to connect the cluster to the Application Monitoring eBPF component.
Before the installation, you must check whether the target cluster has ARMS Addon Token. Otherwise, an error message is returned. If ARMS Addon Token exist, ARMS performs password-free authorization. After the components are installed, you can use the Application Monitoring eBPF. If no ARMS Addon Token exist, you need to manually add ARMS and Tracing Analysis policies. The following section describes how 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 complete authorization.
By default, ACK dedicated clusters do not have ARMS Addon Token. You must manually complete authorization.
Install Application Monitoring eBPF components
Install components for an existing application
If the Application Monitoring eBPF component is installed in your application, log on to the ACK console and choose in the left-side navigation pane. On the Components 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 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. Application Monitoring eBPF is automatically installed in the ACK console.
NoteThe default namespace is arms-prom.
Install components when you create an application
Log on to the ACK console. On the Clusters page, find the cluster that you want to manage and click Applications in the Actions column.
On the Deployments page, click Create from YAML in the upper-right corner of the page.
Select Sample Template and add the following
labels
to the spec.template.metadata level in the Template (YAML) section.labels: armseBPFAutoEnable: "on" armseBPFCreateAppName: "<your-deployment-name>" // Replace <your-deployment-name> with the name of your application.
The following YAML template shows how to create a Deployment application and enable ARMS for the Application Monitoring eBPF application:
References
After you access Application Monitoring eBPF, you can view the key metrics, upstream and downstream dependent components, and topology of the ACK cluster. For more information, see Application details.