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
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
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.
In the left-side navigation pane, click . On the Add-ons page, enter ack-onepilot.
Click Uninstall on the ack-onepilot card.
In the message that appears, click OK.
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
Run the following command to uninstall the ack-onepilot component:
helm3 uninstall --namespace ack-onepilot ack-onepilotRestart the pod.
Uninstall the ARMS 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
labelsthat you added when you installed the ARMS agent and click Update.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
Delete the content of the Dockerfile added when you installed the ARMS agent.
Run the
docker buildcommand to construct an image.Run the
docker runcommand 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-onepilotpods remain:kubectl get pods -n ack-onepilotIf 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.
