sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chetan Mehrotra <>
Subject Re: MetricsService question.
Date Thu, 19 Jan 2017 09:26:24 GMT
On Thu, Jan 19, 2017 at 2:48 PM, Ian Boston <> wrote:
> Is the intention that [1] should use the same approach as [2] so that there
> is 1 MetricsRegistry per JVM ?

No. Sling Metrics creates and manages its own MetricRegistry and
registers it in OSGi with a "name" service property set to "sling".
The one in Oak also dose registers its managed MetricRegistry and
registers it with "name=oak" service property.

The webconsole  plugin accounts for  multiple registry instance.

> ie Check for a MetricsRegistry as a service, and if not present create one, so that there
is only 1 which reporters can report on.

The reporter implemented so far [1] and [2] account for that and can
work with multiple MetricRegistry present in OSGi service registry

Chetan Mehrotra

View raw message