You can define custom methods in Application Monitoring to monitor methods and interfaces beyond those automatically discovered by the monitoring agent.
Prerequisites
The application must be connected to Cloud Monitor 2.0.
Define a custom monitoring method
Log on to the Cloud Monitor 2.0 console, and select a workspace. In the left navigation pane, choose .
-
On the Application List page, click the name of the target application. Then, in the top navigation bar, choose .
-
In the upper-right corner, click Add Method.
-
In the Add Custom Method dialog box, set the following parameters and click OK.
Parameter
Description
Full method name
The name of the method to monitor. The name must be unique.
Enable this feature
Enables monitoring for this method. The method is also displayed in the local method stack. For more information, see Call chain analysis. This feature is enabled by default.
NoteYou can enable or disable this feature without restarting the application.
Set as business invocation entry point
If you set a method as a business invocation entry point, you can perform business queries on it through the call chain. The corresponding interface is also displayed in the Provided Services module. For more information, see Provided Services. This feature is disabled by default.
NoteIf multiple custom methods in a call stack are set as business invocation entry points, only the monitoring information of the last method is collected. (For example, if function A calls function B and you add custom instrumentation for both functions, only the information for function B is collected.)