Uninstall an agent for Python
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
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
-
Log on to the Container Service for Kubernetes (ACK) console. On the Clusters page, click your cluster name.
-
In the left-side navigation pane, click . On the Add-ons page, enter ack-onepilot.
-
Click Uninstall on the ack-onepilot card.
-
In the confirmation message, click OK.
-
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
-
Run the following command to uninstall ack-onepilot:
helm3 uninstall --namespace ack-onepilot ack-onepilot -
Restart the pod.
Uninstall the agent for a specific application in the cluster
Log on to the ACK console. On the Clusters page, click the name of the cluster.
-
In the left-side navigation pane, choose . On the Deployments page, find the workspace where the application belongs and choose in the Actions column.
-
In the Edit YAML dialog box, delete the
labelsadded during agent installation, and click Update. -
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
-
Remove the agent-related content from the Dockerfile.
-
Run
docker buildto rebuild the image. -
Run
docker runto start the application.
