All Products
Search
Document Center

Application Real-Time Monitoring Service:Uninstall an ARMS agent for Java

Last Updated:Dec 12, 2024

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

  1. Delete the {AppName}, {LicenseKey}, and {javaagent} parameters that are added when you install the ARMS agent.

  2. Restart the Java application.

Uninstall an ARMS agent deployed in Function Compute

  1. Log on to the Function Compute console. In the left-side navigation pane, click Functions.

  2. In the top navigation bar, select a region. On the Functions page, click the function that you want to manage.

  3. On the function details page, click the Configurations tab.

  4. Click the Layers tab and then click Modify. In the panel that appears, delete the ARMS Agent layer and click Deploy.

  5. Click the Environment Variables tab and then click Modify. In the panel that appears, delete the FC_EXTENSION_ARMS=true and FC_EXTENSIONS_ARMS_LICENSE_KEY=xxxx environment variables, and then click Deploy.

Uninstall an ARMS agent deployed in an ACK cluster

Warning

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

  1. Log on to the Container Service for Kubernetes (ACK) console.

  2. In the left-side navigation pane, click Clusters. On the Clusters page, click the name of the cluster.

  3. In the left-side navigation pane, choose Operations > Add-ons. On the Add-ons page, enter ack-onepilot in the upper-right corner.

  4. Click Uninstall on the ack-onepilot card.

  5. In the message that appears, click OK.

  6. Restart the pod.

Method 2: Use the CLI

  1. Run the following command to uninstall the ack-onepilot component:

    helm3 uninstall --namespace ack-onepilot ack-onepilot
  2. Restart the pod.

Uninstall the ARMS agent for a specific application in the cluster

  1. 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.

  2. On the Deployments page, choose More > View in YAML in the Actions column of the application.

  3. In the Edit YAML dialog box, delete the labels that you added when you installed the ARMS agent and click Update.

  4. Restart the pod.

Uninstall an ARMS agent deployed in Docker

  1. Delete the content of the Dockerfile added when you installed the ARMS agent.

  2. Run the docker build command to construct an image.

  3. Run the docker run command to start the image.