Please follow the steps below:
1. Go to the Foglight dashboard2 Application Servers | Administration | Application Servers Administration"
2. Click "Java Administration" and select "Agent Configuration" tab.
3. Create backup of configuration.
4. Click "Configuration" again and "Edit Instrumentation Settings"
5. Now select "NamedMethods" tab and click "Edit" to the right of NamedMethods.
6. Add a "Named Method", type in the name of named method and click "Ok".
7. The "Settings Editor" refreshes and a table appears on the right.
8. Click "Add" and a row will be added to the method list table.
9. Click in the "Name" box and type the name of the method.
In the example below, a method group is defined that uses similar methods. "Get Balance" is displayed in the user interface and all the methods within that group are aggregated.
NamedMethods = {
"Get Balance": MethodList(
include "com.globex.Account.close()",
include "com.globex.Account.close(Ljava/lang/Integer;Z[B)I|)”,
include "com.globex.Account.close(Ljava/lang/String;Z[B)I)",
),
}

10. Repeat the above steps 7 and 8 to add more methods.
11. Click "Ok" after adding all the methods and the "Settings Editor" will close. The named method appears in the list on the "Named Methods" tab of the "Configuration Category Editor".

12. Click "Save".