All Products
Search
Document Center

Application Real-Time Monitoring Service:Add custom methods for monitoring

Last Updated:Aug 26, 2024

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

Prerequisites

Important

Application Monitoring provides a new application details page for users who have enabled the new billing mode. For more information, see Billing (new).

If you have not enabled the new billing mode, you can click Switch to New Version on the Application List page to view the new application details page.

An ARMS agent is installed for the application. For more information, see Application Monitoring overview.

Add a custom method

  1. Log on to the ARMS console. In the left-side navigation pane, choose Application Monitoring > Application List.

  2. On the Application List 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 is displayed in the Language column, the application is connected to Application Monitoring. If a hyphen (-) is displayed, the application is connected to Managed Service for OpenTelemetry.

  3. In the top navigation bar, choose Configuration > Custom Monitoring Methods.

  4. Click Add Method.

  5. In the Add Custom Method dialog box, set the following parameters and click OK.

    Parameter

    Description

    Method

    The name of the method to be monitored. It must be unique.

    Enable

    After 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 turned on.

    Note

    This feature can be enabled or disabled without the need to restart the application.

    Call Entrance

    After you configure the method as an entry method, you can query business by traces. Then, the corresponding interfaces are displayed on the Provided Services tab. For more information, see Services provided. By default, this switch is disabled.

    Note

    If multiple custom methods in the stack are configured as entrance methods, only the monitoring data of the last method is collected. Assume that Function A calls Function B. If Function A and Function B are both configured as entrance methods, only the monitoring data of Function B is collected.