If you no longer need Application Real-Time Monitoring Service (ARMS) to monitor your Java applications, you can uninstall the ARMS agent. This topic describes how to uninstall an ARMS agent.
Uninstall an ARMS agent manually installed for a Java application
Delete the {AppName}, {LicenseKey}, and {javaagent} parameters that are added when you install the ARMS agent.
Restart the Java application.
Uninstall an ARMS agent installed for a Java application deployed in Function Compute
- Log on to the Function Compute console.
- In the top navigation bar, select the region where your Kubernetes cluster is deployed.
In the left-side navigation pane, click Services & Functions.
On the Services page, click the name of the service that you want to manage.
On the Functions tab, find the function that you want to modify and click Configure in the Actions column.
In the Environment Variables section of the Modify Function Settings page, select Form Editor. Then, delete the environment variable named FC_EXTENSIONS_ARMS_LICENSE_KEY.
Click Save.
Uninstall an ARMS agent installed for Java applications deployed in a Kubernetes cluster
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.
In the left-side navigation pane, click Clusters. On the Clusters page, click the name of the cluster.
In the left-side navigation pane, choose
. On the Add-ons page, enter ack-onepilot in the upper-right corner.Click Uninstall on the ack-onepilot card.
In the message that appears, click OK.
Restart the pod of your service.
Method 2: Use the CLI
Run the following command to uninstall the ack-onepilot component:
helm3 uninstall --namespace ack-onepilot ack-onepilot
Restart the pod of your service.
Uninstall the ARMS agent for a specific application in the cluster
Log on to the ACK console. In the left-side navigation pane, click Clusters. On the Clusters page, find the cluster and click Applications in the Actions column.
On the Deployments page, choose
in the Actions column of the application.In the Edit YAML dialog box, delete the
labels
that you added when you installed the ARMS agent and click Update.Restart the pod.
Uninstall an ARMS agent installed for Java applications deployed in ECS instances
Log on to the ARMS console. In the left-side navigation pane, choose .
On the Applications page, select a region in the top navigation bar and click the name of the application that you want to manage.
NoteIf the icon is displayed in the Language column, the application is connected to Application Monitoring. If a hyphen (-) is displayed, the application is connected to Managed Service for OpenTelemetry .
In the left-side navigation pane, click Application Settings.
On the Agent Status tab, uninstall the application.
Uninstall the ARMS agent from a single instance:
Find the instance and click Uninstall in the Actions column.
Uninstall the ARMS agent from multiple instances:
Select the instances and click Bulk uninstall.
In the message that appears, click OK.
If the ARMS agent is uninstalled,
Agent has been uninstalled and will take effect the next time the application is restarted
appears in the Actions column.Restart the application. Wait for 1 to 2 minutes. In the left-side navigation pane, click Application Details to check whether the monitoring data is reported.
If the monitoring data is no longer reported, the ARMS agent is uninstalled.
NoteAfter about 5 minutes, the disconnected instance is no longer displayed on the Agent Status tab.
Uninstall an ARMS agent installed for Java applications deployed in Docker environments
Delete the content of the Dockerfile added when you installed the ARMS agent.
Run the
docker build
command to construct an image.Run the
docker run
command to start the image.