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