Uninstall an agent for Python

Updated at:

If you no longer need to monitor your Python application, you can uninstall the Python agent to stop monitoring. This topic describes how to uninstall the Python agent.

Uninstall an agent deployed in an ACK cluster

Warning

The ack-onepilot component is shared by Microservices Engine (MSE) and Cloud Monitor. Before you uninstall the component, make sure that you are not using MSE. Otherwise, MSE becomes unavailable.

Uninstall the 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 your cluster name.

  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 confirmation message, click OK.

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

Method 2: Use the CLI

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

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

Uninstall the 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 added during agent installation, and click Update.

  4. Restart the pod. Then, click Workloads in the left-side navigation pane, click Deployments or StatefulSets, and click Batch Redeploy.

Uninstall an agent deployed in Docker

  1. Remove the agent-related content from the Dockerfile.

  2. Run docker build to rebuild the image.

  3. Run docker run to start the application.