public interface MetricReporter
Metricsto an external backend.
Reporters are instantiated either a) via reflection, in which case they must be public,
non-abstract, and have a public no-argument constructor. b) via a
in which case no restrictions apply. (recommended)
Reporters are neither required nor encouraged to support both instantiation paths.
|Modifier and Type||Method and Description|
Closes this reporter.
Called when a new
Called when a
Configures this reporter.
void open(MetricConfig config)
If the reporter was instantiated generically and hence parameter-less, this method is the place where the reporter sets it's basic fields based on configuration values. Otherwise, this method will typically be a no-op since resources can be acquired in the constructor.
This method is always called first on a newly instantiated reporter.
config- A properties object that contains all parameters set for this reporter.
void notifyOfAddedMetric(Metric metric, String metricName, MetricGroup group)
metric- the metric that was added
metricName- the name of the metric
group- the group that contains the metric
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.