glassfish
  1. glassfish
  2. GLASSFISH-16158

Register monitoring probes for deployed applications

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: future release
    • Component/s: deployment
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Hong Zhang added a comment -

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

        Show
        Hong Zhang added a comment - Jennifer: is this still valid with the upcoming changes on the monitoring framework?
        Hide
        Hong Zhang added a comment -

        Scrubbing RFEs for GlassFish 4.0.

        Show
        Hong Zhang added a comment - Scrubbing RFEs for GlassFish 4.0.
        Hide
        Jeremy_Lv added a comment - - 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.

        Show
        Jeremy_Lv added a comment - - 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.
        Hide
        marina vatkina added a comment -

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

        Show
        marina vatkina added a comment - Everything by default is registered at HIGH level. LOW level isn't very easy to use - see GLASSFISH-20529

          People

          • Assignee:
            Hong Zhang
            Reporter:
            Jennifer Chou
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: