Application Real-Time Monitoring Service (ARMS) identifies each application by the name that the ARMS agent reports. When you rename an application, ARMS reports all new monitoring data under the new name.
After you rename an application, monitoring data is reported by using the new name rather than the previous name.
The rename method depends on the deployment environment:
| Deployment environment | Rename supported | Method |
|---|---|---|
| Container Service for Kubernetes (ACK) cluster, agent 2.5.8.1 or later | Yes | Update the armsPilotCreateAppName parameter in the Deployment |
| ACK cluster, agent earlier than 2.5.8.1 | Yes | Uninstall and reinstall the agent with a new name |
| Enterprise Distributed Application Service (EDAS) | No | The names of Java applications deployed in EDAS cannot be changed. |
Rename a Java application in an ACK cluster
Check the agent version
Open the version file in the ARMS agent installation directory. The version string has the following format:
2.5.8_cf020486_201908161500252.5.8-- agent version.20190816150025-- build timestamp (August 16, 2019).
All agents downloaded after August 20, 2019 are version 2.5.8.1 or later and support in-place renaming.
Agent 2.5.8.1 or later: update the Deployment
If the ARMS agent version is 2.5.8.1 or later, you can rename the application without reinstalling the agent:
In the Deployment YAML, set the
armsPilotCreateAppNameenvironment variable to the new name.spec: containers: - name: <your-container> env: - name: armsPilotCreateAppName value: "<new-application-name>" # Replace with the desired nameApply the updated Deployment to restart the pods.
After the pods restart, verify that ARMS reports monitoring data under the new name.
Agent earlier than 2.5.8.1: reinstall the agent
If the ARMS agent version is earlier than 2.5.8.1, uninstall and reinstall the agent with the new application name:
Uninstall the existing ARMS agent. For more information, see Manually install an ARMS agent for a Java application.
Reinstall the agent and specify the new application name during installation.
Rename a Java application in EDAS
The names of Java applications deployed in Enterprise Distributed Application Service (EDAS) cannot be changed.