I'm getting a bit off-topic here, sorry :-) It would actually be quite simple:
1. Install and configure SystemReady/HC 2. Install https://github.com/apache/sling-whiteboard/tree/master/osgi-metrics/collector 3. Create an Decanter appender (event-drive I guess) that implements the StartupMetricsListener interface. Whenever the startup metrics are completed, the onStartupComplete method is invoked. Thanks, Robert On Thu, 2020-04-23 at 15:12 +0200, Jean-Baptiste Onofre wrote: > Definitely I agree with you. I would love to create a new collector > in Decanter ;) > > Regards > JB > > > Le 23 avr. 2020 à 15:10, Robert Munteanu <[email protected]> a > > écrit : > > > > Hi JB, > > > > On Tue, 2020-04-21 at 16:21 +0200, Jean-Baptiste Onofre wrote: > > > Hi, > > > > > > Healthcheck can be a place. > > > > This indeed related to the HealthCheck module. It only consumes the > > API, so I would say this should not necessarily be bundled/included > > in > > the HC. > > > > > Karaf Decanter can be another option as well. > > > > Reading on the Decanter, I can see that it's a monitoring solution. > > I > > think there is a link here, as these metrics I'm gathering can be > > wrapped as a Decanter collector and then the output pushed through > > any > > kind of appender. > > > > I would still prefer to make this solution generic, as I'm not > > currently using Decanter. > > > > Thanks, > > Robert > > > > > Regards > > > JB > > > > > > > Le 21 avr. 2020 à 14:25, Robert Munteanu <[email protected]> a > > > > écrit : > > > > > > > > Hi, > > > > > > > > I have been working on collecting startup metrics for OSGi > > > > applications. I am interested in finding potentials for > > > > optimising > > > > startup time, so created a set of bundles that record: > > > > > > > > - total startup time > > > > - bundles that are slow to start > > > > - OSGi services that are restarted during startup > > > > > > > > I think the functionality would be useful for the wider > > > > community > > > > and > > > > would like to ask whether the Felix project would be interested > > > > in > > > > hosting it. > > > > > > > > The 'project' consists of two bundles: > > > > > > > > - one that starts as early as possible and collects startup > > > > metrics > > > > - one that contains some out-of-the-box consumers of metrics > > > > - Dropwizard metrics > > > > - slf4j logging > > > > - JSON output to disk > > > > > > > > The bundles are in the Apache Sling whiteboard for now [1], so > > > > no > > > > releases were cut, no documentation to change, no backwards > > > > compatibility to consider. > > > > > > > > Do you think this functionality has its place in Felix? I would > > > > be > > > > happy to contribute it, if the community agrees. > > > > > > > > Thanks, > > > > Robert > > > > > > > > > > > > [1]: > > > > https://github.com/apache/sling-whiteboard/tree/master/osgi-metrics > > > >
