@PublicEvolving public class PrometheusReporter extends AbstractPrometheusReporter
MetricReporter
that exports Metrics
via Prometheus.log
Constructor and Description |
---|
PrometheusReporter() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this reporter.
|
void |
open(MetricConfig config)
Configures this reporter.
|
notifyOfAddedMetric, notifyOfRemovedMetric
public void open(MetricConfig config)
MetricReporter
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.
open
in interface MetricReporter
open
in class AbstractPrometheusReporter
config
- A properties object that contains all parameters set for this reporter.public void close()
MetricReporter
close
in interface MetricReporter
close
in class AbstractPrometheusReporter
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.