All Products
Search
Document Center

Application Real-Time Monitoring Service:Uninstall the ARMS agent for Go

Last Updated:Mar 11, 2026

To stop monitoring your Go applications with Application Real-Time Monitoring Service (ARMS), remove the ARMS agent. The uninstall method depends on how the agent was deployed.

Deployment methodUninstall method
ACK cluster (all applications)Uninstall from an ACK cluster
ACK cluster (single application)Uninstall from a single application in an ACK cluster
Manual installation (instgo)Remove a manually installed agent

Uninstall from an ACK cluster

Uninstalling the ack-onepilot component removes the ARMS agent from all applications in the cluster.

Warning

The ack-onepilot component is shared by ARMS and Microservices Engine (MSE). Before you uninstall it, make sure MSE is not in use. Uninstalling ack-onepilot while MSE is active makes MSE unavailable.

Use the ACK console

  1. Log on to the Container Service for Kubernetes (ACK) console. On the Clusters page, click the name of the target cluster.

  2. In the left-side navigation pane, choose Operations > Add-ons. Search for ack-onepilot in the upper-right corner.

  3. On the ack-onepilot card, click Uninstall.

  4. In the confirmation dialog, click OK.

  5. Restart your application pods to apply the change.

Use the CLI

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

    helm3 uninstall --namespace ack-onepilot ack-onepilot
  2. Restart your application pods to apply the change.

Verify the uninstall

After uninstalling, confirm that ack-onepilot pods are no longer running:

kubectl get pods -n ack-onepilot

If the namespace is empty or the command returns No resources found, the uninstall succeeded.

Uninstall from a single application in an ACK cluster

To remove the ARMS agent from a specific application without affecting other applications in the cluster:

  1. Log on to the ACK console. On the Clusters page, find the target cluster and click Applications in the Actions column.

  2. On the Deployments page, find the target application. In the Actions column, choose More > View in YAML.

  3. In the Edit YAML dialog, delete the labels that were added when the ARMS agent was installed, then click Update.

  4. Restart the application pod to apply the change.

Verify the uninstall

Check that the ARMS-related labels have been removed from the pod:

kubectl get pod <pod-name> -n <namespace> --show-labels

Confirm that no ARMS-specific labels appear in the output.

Remove a manually installed agent

If you installed the ARMS agent by using instgo (compile-time instrumentation), remove it by recompiling your application with the standard Go toolchain. instgo automatically restores your codebase after compilation completes, so no code changes are needed.

  1. (Optional) Recompile your application with go build instead of instgo:

    go build -o <your-app-binary>
  2. Deploy the recompiled binary to your production environment, replacing the previously instrumented version.

Clean up residual files from compile-time instrumentation

During compile-time instrumentation, instgo temporarily modifies source files and restores them after compilation finishes. Manual cleanup is only needed if:

  • The compilation was forcibly stopped or killed.

  • instgo unexpectedly exited due to a panic.

Run the clean command to restore your source files:

Linux and macOS

./instgo clean

Windows

.\instgo.exe clean

Delete instgo and its cache

To fully remove instgo from your system:

  1. Delete the agent cache directory. If you specified a custom cache directory with the --cacheDir flag during compilation, delete that directory. Otherwise, delete the default cache directory.

    Linux and macOS

    # Custom cache directory
    rm -rf <your-cache-dir>/aliyun-go-agent
    
    # Default cache directory
    rm -rf /opt/.opt/aliyun-go-agent

    Windows

    # Custom cache directory
    rmdir <your-cache-dir>\aliyun-go-agent -Recurse
    
    # Default cache directory
    rmdir C:\ProgramData\.opt\aliyun-go-agent -Recurse
  2. Delete the instgo binary.

What gets removed

ItemLocationRemoved by
Agent cache/opt/.opt/aliyun-go-agent (Linux/macOS) or C:\ProgramData\.opt\aliyun-go-agent (Windows)Cache deletion (step 1)
instgo binaryYour working directoryManual deletion (step 2)
Source file modificationsYour codebaseAutomatic restoration (or instgo clean)