Uninstall the ARMS agent for Python

更新时间:
复制 MD 格式

To stop Application Real-Time Monitoring Service (ARMS) from monitoring a Python application, uninstall the ARMS agent from your deployment environment. The uninstall steps depend on whether the agent runs in a Container Service for Kubernetes (ACK) cluster or in Docker.

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. On the Clusters page, click the name of the cluster that you want to manage.

  2. In the left-side navigation pane, click Add-ons. On the Add-ons page, enter ack-onepilot.

  3. Click Uninstall on the ack-onepilot card.

  4. In the message that appears, click OK.

  5. Restart the pod. Then, click Workloads in the left-side navigation pane, click Deployments or StatefulSets, and click Batch Redeploy in the lower part of the page.

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. On the Clusters page, click the name of the cluster.

  2. In the left-side navigation pane, choose Workloads > Deployments. On the Deployments page, find the workspace where the application belongs and choose image > Edit YAML in the Actions column.

  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. Then, click Workloads in the left-side navigation pane, click Deployments or StatefulSets, and click Batch Redeploy in the lower part of the page.

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.

Verify the uninstallation

After you uninstall the agent, you can verify the result:

  • ACK cluster (all applications): Run the following command to confirm that no ack-onepilot pods remain:

    kubectl get pods -n ack-onepilot

    If the uninstallation succeeded, no pods are returned.

  • ACK cluster (specific application): Check the deployment YAML of the target application to confirm that the ARMS labels have been removed.