You can filter the components that you want to monitor by using the monitor-1.0 feature in the Liberty profile. The components to be filtered must be configured in the server.xml file.
<server description="new server">
<featureManager>
<feature>jsp-2.2</feature>
<feature>jdbc-4.0</feature>
<feature>monitor-1.0</feature>
<monitor filter="JVM,ThreadPool,WebContainer,Session,ConnectionPool"/>
</server>
By default, if the filters are not provided in the <monitor> tag, all the components that are currently monitored as part of the monitor-1.0 feature are monitored. If the <monitor> tag is present but without any filters specified, then no component is monitored. You can also specify the components that you want to monitor by providing the group name as part of the filter.
<monitor filter="JVM,WebContainer"/>
To stop monitoring a component, you must remove the component from the filter group at run time.
<monitor filter="JVM,ThreadPool,WebContainer,Session,ConnectionPool"/>
To
stop monitoring the components WebContainer and Session,
remove those components from the filter configuration:<monitor filter="JVM,ThreadPool,ConnectionPool" />
If you want to enable monitoring for specific components at run time, you can specify the components in the monitor tag at run time.