package metrics
Type Members
-
final
class
MetricsReporting extends ResourceOwner[Metrics]
Manages metrics and reporters.
Manages metrics and reporters.
Creates the MetricRegistry.
All out-of-the-box JVM metrics are added to the registry.
Creates at least two reporters:
- a JmxReporter, which exposes metrics over JMX, and
- an Slf4jReporter, which logs metrics on shutdown at DEBUG level.
Also optionally creates the reporter specified in the constructor.
Note that metrics are in general light-weight and add negligible overhead. They are not visible to everyday users so they can be safely enabled all the time.