All Products
Search
Document Center

Application Real-Time Monitoring Service:Uninstall an ARMS agent

Last Updated:Oct 31, 2023

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.

Uninstall an ARMS agent manually installed for a Java application

  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 installed for a Java application deployed in Function Compute

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select the region where your Kubernetes cluster is deployed.
  3. In the left-side navigation pane, click Services & Functions.

  4. On the Services page, click the name of the service that you want to manage.

  5. On the Functions tab, find the function that you want to modify and click Configure in the Actions column.

  6. In the Environment Variables section of the Modify Function Settings page, select Form Editor. Then, delete the environment variable named FC_EXTENSIONS_ARMS_LICENSE_KEY.

  7. Click Save.

Uninstall an ARMS agent installed for Java applications deployed in a Kubernetes cluster

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 of your service.

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 of your service.

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 installed for Java applications deployed in ECS instances

  1. Log on to the ARMS console. In the left-side navigation pane, choose Application Monitoring > Applications.

  2. On the Applications page, select a region in the top navigation bar and click the name of the application that you want to manage.

    Note

    If the Java icon icon is displayed in the Language column, the application is connected to Application Monitoring. If a hyphen (-) is displayed, the application is connected to Managed Service for OpenTelemetry .

  3. In the left-side navigation pane, click Application Settings.

  4. On the Agent Status tab, uninstall the application.

    • Uninstall the ARMS agent from a single instance:

      Find the instance and click Uninstall in the Actions column.

    • Uninstall the ARMS agent from multiple instances:

      Select the instances and click Bulk uninstall.

    Uninstall the ARMS agent from an ECS instance
  5. In the message that appears, click OK.

    If the ARMS agent is uninstalled, Agent has been uninstalled and will take effect the next time the application is restarted appears in the Actions column.

  6. Restart the application. Wait for 1 to 2 minutes. In the left-side navigation pane, click Application Details to check whether the monitoring data is reported.

    If the monitoring data is no longer reported, the ARMS agent is uninstalled.

    Note

    After about 5 minutes, the disconnected instance is no longer displayed on the Agent Status tab.

Uninstall an ARMS agent installed for Java applications deployed in Docker environments

  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.