If you no longer need Application Real-Time Monitoring Service (ARMS) to monitor your Java applications, you can uninstall the ARMS agent. This topic describes how to uninstall an ARMS agent for Java.
Uninstall a manually installed ARMS agent
Delete the {AppName}, {LicenseKey}, and {javaagent} parameters that are added when you install the ARMS agent.
Restart the Java application.
Uninstall an ARMS agent deployed in Function Compute
Log on to the Function Compute console. In the left-side navigation pane, click Functions.
In the top navigation bar, select a region. On the Functions page, click the function that you want to manage.
On the function details page, click the Configurations tab.
Click the Layers tab and then click Modify. In the panel that appears, delete the ARMS Agent layer and click Deploy.
Click the Environment Variables tab and then click Modify. In the panel that appears, delete the
FC_EXTENSION_ARMS=true
andFC_EXTENSIONS_ARMS_LICENSE_KEY=xxxx
environment variables, and then click Deploy.
Uninstall an ARMS agent deployed in an ACK cluster
The ack-onepilot component is shared by Microservices Engine (MSE) and ARMS. Before you uninstall the component, make sure that you are not using MSE. Otherwise, MSE becomes available.
Uninstall the ARMS agent for all applications in the cluster
Method 1: Use the ACK console
Log on to the Container Service for Kubernetes (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
. On the Add-ons page, enter ack-onepilot in the upper-right corner.Click Uninstall on the ack-onepilot card.
In the message that appears, click OK.
Restart the pod.
Method 2: Use the CLI
Run the following command to uninstall the ack-onepilot component:
helm3 uninstall --namespace ack-onepilot ack-onepilot
Restart the pod.
Uninstall the ARMS agent for a specific application in the cluster
Log on to the ACK console. In the left-side navigation pane, click Clusters. On the Clusters page, find the cluster and click Applications in the Actions column.
On the Deployments page, choose
in the Actions column of the application.In the Edit YAML dialog box, delete the
labels
that you added when you installed the ARMS agent and click Update.Restart the pod.
Uninstall an ARMS agent deployed in Docker
Delete the content of the Dockerfile added when you installed the ARMS agent.
Run the
docker build
command to construct an image.Run the
docker run
command to start the image.