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 on the details page of your application.

Go to the feature tab

  1. Log on to the EDAS console.
  2. Go to the Application Overview page by using one of the following methods:
    • In the left-side navigation pane, choose Resource Management > Container Service Kubernetes Clusters or Resource Management > Serverless Kubernetes Clusters. In the top navigation bar, select a region. In the upper part of the page, select a microservice namespace. On the Container Service Kubernetes Clusters or Serverless Kubernetes Clusters page, click a cluster ID. In the Applications section of the Cluster Details page, click the name of the application that you want to manage.
    • In the left-side navigation pane, click Applications. In the top navigation bar, select a region. In the upper part of the page, select a microservice namespace. Select Container Service or Serverless Kubernetes Cluster from the Cluster Type drop-down list and click the name of the application that you want to manage.
  3. In the left-side navigation pane, choose Application Settings > Application Monitoring Configuration.
  4. On the Application Monitoring Configuration page, 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, set the parameters as needed and click OK.
    pg_am_settings_add_method
    Parameter Description
    Method The name of the custom method. The name must be unique within the current application.
    Enable Specifies whether to enable monitoring for the method. After you turn on this switch, the method is monitored by ARMS and displayed in the local method stack. By default, this switch is turned on.
    Note You can enable or disable monitoring as needed without restarting your application.
    Call Entrance Specifies whether to set the method as the business entry. After you turn on this switch, you can query business data based on traces, and the corresponding APIs are displayed on the Interface Invocation page. For more information, see Service and API monitoring. By default, this switch is turned off.
    After a custom method is added for monitoring, it is automatically displayed in the method list.