public abstract class PrometheusMetricsProcessor<T> extends Object
| Constructor and Description |
|---|
PrometheusMetricsProcessor(InputStream inputStream,
PrometheusMetricsWalker theWalker) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract MetricFamily |
convert(T metricFamily)
This method converts the metrics from the specific data format found in the input stream
to the common metric format.
|
protected abstract PrometheusMetricDataParser<T> |
createPrometheusMetricDataParser() |
protected InputStream |
getInputStream() |
protected PrometheusMetricsWalker |
getWalker() |
void |
walk()
|
public PrometheusMetricsProcessor(InputStream inputStream, PrometheusMetricsWalker theWalker)
inputStream - where the Prometheus metrics are that the walker will traverse.theWalker - the actual object that will be notified about the metrics as they are encounteredpublic void walk()
protected InputStream getInputStream()
protected PrometheusMetricsWalker getWalker()
protected abstract PrometheusMetricDataParser<T> createPrometheusMetricDataParser()
input stream.protected abstract MetricFamily convert(T metricFamily)
metricFamily - the metric family (and its metrics) that need to be convertedCopyright © 2022. All rights reserved.