If you no longer need Application Real-Time Monitoring Service (ARMS) to monitor your Java application, you can uninstall the agent.
Uninstall a manually installed agent
Remove the {AppName}, {LicenseKey}, and {javaagent} parameters that you added during installation.
Restart your Java application.
Uninstall an agent from Function Compute
Log on to the Function Compute console. In the navigation pane on the left, choose .
In the top navigation bar, select a region. On the Functions page, click the name of the target function.
On the function details page, click the Configuration tab.
In the pane on the left, on the Layers tab, click Edit. In the panel that appears, remove the ARMS Agent layer, and then click Deploy.
In the pane on the left, on the Environment Variable tab, click Edit. Remove the
FC_EXTENSION_ARMS=trueandFC_EXTENSIONS_ARMS_LICENSE_KEY=xxxxenvironment variables, and then click Deploy.
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.
> Edit YAML