T
- the metric family object type that the parser producespublic abstract class PrometheusMetricDataParser<T> extends Object
PrometheusMetricsProcessor
to process
the parsed data.Constructor and Description |
---|
PrometheusMetricDataParser(InputStream inputStream)
Provides the input stream where the parser will look for metric data.
|
Modifier and Type | Method and Description |
---|---|
protected InputStream |
getInputStream() |
abstract T |
parse()
Reads a single metric family from the Prometheus metric data stream and returns it.
|
public PrometheusMetricDataParser(InputStream inputStream)
inputStream
- the stream where the metric data can be foundprotected InputStream getInputStream()
public abstract T parse() throws IOException
IOException
- if failed to read the data from the streamCopyright © 2021. All rights reserved.