After you install the Application Real-Time Monitoring Service (ARMS) agent for a Java application in Function Compute, you can use the agent to monitor the application. Then, you can view the monitoring data of the application, including the application topology, API requests, abnormal transactions, and slow transactions. This topic describes how to install the ARMS agent for a Java application in Function Compute.
Prerequisites
Step 1: Obtain a license key
Step 2: Modify function variables
- 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, and then click + Add Variable.
- Set the Variable parameter to FC_EXTENSIONS_ARMS_LICENSE_KEY and the Value parameter to the license key that you obtained in Step 1: Obtain a license key. Then, click Save.
Check the result
If your Java application is displayed on the Applications page of the ARMS console and data is imported after you call the function multiple times in the Function Compute console, the Java application is connected to ARMS.