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 a 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 Access applications.
  3. In the Access Center panel, click Java. In the STEP2 section, obtain the license key.
    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 & Functions.
  4. On the Services page, click the name of the service that you want to manage.
  5. On the Functions tab, find the function that you want to modify and click Configure in the Actions column.
  6. In the Environment Variables section of the Modify Function Settings page, select Form Editor, and then click + Add Variable.
  7. 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.