public class TextPrometheusMetricDataParser extends PrometheusMetricDataParser<MetricFamily>
| Constructor and Description |
|---|
TextPrometheusMetricDataParser(InputStream inputStream)
Provides the input stream where the parser will look for metric data.
|
| Modifier and Type | Method and Description |
|---|---|
MetricFamily |
parse()
Reads a single metric family from the Prometheus metric data stream and returns it.
|
getInputStreampublic TextPrometheusMetricDataParser(InputStream inputStream)
inputStream - the stream where the metric data can be foundpublic MetricFamily parse() throws IOException
PrometheusMetricDataParserparse in class PrometheusMetricDataParser<MetricFamily>IOException - if failed to read the data from the streamCopyright © 2022. All rights reserved.