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 agent from a Kubernetes environment
The ack-onepilot component is shared by Microservices Engine (MSE) and ARMS. Before you uninstall ack-onepilot, ensure your application is not integrated with MSE. Otherwise, uninstalling ack-onepilot will make MSE unavailable.
Uninstall for all applications
Method 1: Uninstall from the ACK console
Log on to the ACK console. On the Clusters page, click the name of the cluster.
In the left-side navigation pane, click Components and Add-ons and then search for ack-onepilot by keyword.
On the ack-onepilot card, click Uninstall.
In the dialog box that appears, click OK.
Restart your application
pods. In the navigation pane on the left, choose or StatefulSets. At the bottom of the page, click Batch Redeploy.
Method 2: Uninstall using the CLI
To uninstall ack-onepilot, run the following command:
helm3 uninstall --namespace ack-onepilot ack-onepilotRestart your application pods.
Uninstall for a specific application
Log on to the ACK console. On the Clusters page, click the name of the cluster.
In the navigation pane on the left, choose . Select the namespace that contains your application. Find the application and in the Actions column, choose .
In the Edit YAML dialog box, remove the
labelssection added during installation, and then click Update.Restart the
pods. In the navigation pane on the left, choose or StatefulSets. At the bottom of the page, click Batch Redeploy.
Uninstall the agent in Docker
Remove the agent installation content from the Dockerfile.
Run the
docker buildcommand to build the 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.
> Edit YAML