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.

Step 1: Obtain the license key

  1. Log on to the ARMS console. In the left-side navigation pane, choose Application Monitoring > Applications.
  2. On the Applications page, select a region in the top navigation bar, and click Add Application.
  3. In the Backend applications section of the Access Center page, click Java.
    Manually install a Java application
  4. In the upper-right corner of the Access Java panel, select the region in which you want to install the Java application.
  5. Obtain the license key in the STEP2 section.
    Section LicenseKey

Step 2: Modify function variables

  1. Log on to the Function Compute console.
  2. In the top navigation bar, select the region where your Kubernetes cluster is deployed.
  3. In the left-side navigation pane, click Services and Functions.
  4. In the Services pane, click the required service in Function Compute.
  5. On the Functions tab, find the function that you want to modify and click Modify Configurations in the Actions column.
  6. In the Environment Variables section of the Modify Configurations page, select Form Editor, and then click + Environment Variables.
  7. Set the Key parameter to FC_EXTENSIONS_ARMS_LICENSE_KEY and the Value parameter to the license key that you obtained in Step 1: Obtain the license key. Then, click Submit.
    Connect a Java application in Function Compute to ARMS

Verify the result

  1. Log on to the ARMS console. In the left-side navigation pane, choose Application Monitoring > Applications.
  2. On the Applications page, select the destination region in the top navigation bar.

If your Java application is displayed in the application list and data is imported after you call the function multiple times in the Function Compute console, the Java application is connected to ARMS.