To monitor methods or APIs that are not detected by the Application Real-Time Monitoring Service (ARMS) agent, you can add custom methods for monitoring in ARMS Application Monitoring.

Prerequisites

Create an application monitoring job

Procedure

  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 the name of the application that you want to manage.
    Note If the Java icon icon is displayed in the Language column, the application is connected to Application Monitoring. If a hyphen (-) is displayed, the application is connected to Tracing Analysis.
  3. In the left-side navigation pane, click Application Settings. On the page that appears, click the Monitoring Method Customization tab.

Add a custom method for monitoring

  1. On the Monitoring Method Customization tab, click Add Method in the upper-right corner.
  2. In the Add Custom Method dialog box, configure the following parameters and click OK.
    pg_am_settings_add_method
    ParameterDescription
    MethodThe name of the method to be monitored. It must be unique.
    EnableAfter you enable this feature, you can monitor this method, and the method is displayed in the local method stack. For more information, see Trace query. By default, this switch is enabled.
    Note This feature can be dynamically enabled or disabled, without the need to restart the applcation.
    Call EntranceAfter this feature is enabled, you can query business by traces. Then, corresponding APIs are displayed in the API call module. For more information, see API call monitoring. By default, this switch is disabled.
    After a custom method is added for monitoring, it is automatically displayed in the method list.