Issue Details (XML | Word | Printable)

Key: GLASSFISH-16158
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Hong Zhang
Reporter: Jennifer Chou
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
glassfish

Register monitoring probes for deployed applications

Created: 04/Mar/11 12:30 PM   Updated: 21/May/13 10:46 PM
Component/s: deployment
Affects Version/s: 3.1
Fix Version/s: future release

Time Tracking:
Not Specified

Tags:
Participants: Hong Zhang, Jennifer Chou, Jeremy_Lv and marina vatkina


 Description  « Hide

To consider in 3.2:

If an application has defined Probes and ProbeProviders, during deployment we should register the Probes/ProbeProviders with GlassFish Monitoring.

In MonitoringBootstrap (admin/monitor) we have registerProbes which can be used.

public synchronized void registerProbes(String appName, File appDir, ClassLoader cl) {

This is currently used by connector module to register the system app jdbcra when it gets loaded.

Then a user does not need to call probeProviderFactory.getProbeProvider(getClass());
http://blogs.sun.com/foo/entry/mort_learns_how_to_use

Maybe there is also some way we can handle any ProbeListeners that are defined.



Hong Zhang added a comment - 02/May/11 01:54 PM

Jennifer: is this still valid with the upcoming changes on the monitoring framework?


Hong Zhang added a comment - 10/Oct/12 01:57 AM

Scrubbing RFEs for GlassFish 4.0.


Jeremy_Lv added a comment - 15/May/13 09:41 AM - edited

Shall we need to implement this in the upcoming version of the glassfish?

I have a question about registering the probe, I have develop a sample about registering the probes to the WebStatsProviderBootstrap and EjbMonitoringStatsProvider before and found we should set the monitor level to high if we want to register the probe to the WebStatsProviderBootstrap and EjbMonitoringStatsProvider. If we just MonitoringBootstrap to get the probe registered, Is it needed for us to set the monitor level? if it is needed, I think it will affect the performance of the deployment.


marina vatkina added a comment - 21/May/13 10:46 PM

Everything by default is registered at HIGH level. LOW level isn't very easy to use - see GLASSFISH-20529