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 method | Uninstall 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.
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
Log on to the Container Service for Kubernetes (ACK) console. On the Clusters page, click the name of the target cluster.
In the left-side navigation pane, choose Operations > Add-ons. Search for ack-onepilot in the upper-right corner.
On the ack-onepilot card, click Uninstall.
In the confirmation dialog, click OK.
Restart your application pods to apply the change.
Use the CLI
Run the following Helm command to uninstall
ack-onepilot:helm3 uninstall --namespace ack-onepilot ack-onepilotRestart 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-onepilotIf 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:
Log on to the ACK console. On the Clusters page, find the target cluster and click Applications in the Actions column.
On the Deployments page, find the target application. In the Actions column, choose More > View in YAML.
In the Edit YAML dialog, delete the
labelsthat were added when the ARMS agent was installed, then click Update.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-labelsConfirm 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.
(Optional) Recompile your application with
go buildinstead ofinstgo:go build -o <your-app-binary>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.
instgounexpectedly exited due to a panic.
Run the clean command to restore your source files:
Linux and macOS
./instgo cleanWindows
.\instgo.exe cleanDelete instgo and its cache
To fully remove instgo from your system:
Delete the agent cache directory. If you specified a custom cache directory with the
--cacheDirflag 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-agentWindows
# Custom cache directory rmdir <your-cache-dir>\aliyun-go-agent -Recurse # Default cache directory rmdir C:\ProgramData\.opt\aliyun-go-agent -RecurseDelete the
instgobinary.
What gets removed
| Item | Location | Removed by |
|---|---|---|
| Agent cache | /opt/.opt/aliyun-go-agent (Linux/macOS) or C:\ProgramData\.opt\aliyun-go-agent (Windows) | Cache deletion (step 1) |
instgo binary | Your working directory | Manual deletion (step 2) |
| Source file modifications | Your codebase | Automatic restoration (or instgo clean) |