public class XMLPrometheusMetricsWalker extends Object implements PrometheusMetricsWalker
| Constructor and Description |
|---|
XMLPrometheusMetricsWalker() |
XMLPrometheusMetricsWalker(URL url)
Use this constructor if you know the URL where the metric data came from.
|
| Modifier and Type | Method and Description |
|---|---|
void |
walkCounterMetric(MetricFamily family,
Counter metric,
int index)
Called when a new counter metric is found.
|
void |
walkFinish(int familiesProcessed,
int metricsProcessed)
Called when a walk has traversed all the metrics.
|
void |
walkGaugeMetric(MetricFamily family,
Gauge metric,
int index)
Called when a new gauge metric is found.
|
void |
walkHistogramMetric(MetricFamily family,
Histogram metric,
int index)
Called when a new histogram metric is found.
|
void |
walkMetricFamily(MetricFamily family,
int index)
Called when a new metric family is about to be traversed.
|
void |
walkStart()
Called when a walk has been started.
|
void |
walkSummaryMetric(MetricFamily family,
Summary metric,
int index)
Called when a new summary metric is found.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildLabelListStringpublic XMLPrometheusMetricsWalker()
public XMLPrometheusMetricsWalker(URL url)
metricFamilies - url - the protocol endpoint that supplied the Prometheus metric datapublic void walkStart()
PrometheusMetricsWalkerwalkStart in interface PrometheusMetricsWalkerpublic void walkFinish(int familiesProcessed,
int metricsProcessed)
PrometheusMetricsWalkerwalkFinish in interface PrometheusMetricsWalkerfamiliesProcessed - total number of families processedmetricsProcessed - total number of metrics across all families processedpublic void walkMetricFamily(MetricFamily family, int index)
PrometheusMetricsWalkerwalkMetricFamily in interface PrometheusMetricsWalkerfamily - information about the family being traversed such as the name, help description, etc.index - index of the family being processed, where 0 is the first one.public void walkCounterMetric(MetricFamily family, Counter metric, int index)
PrometheusMetricsWalkerwalkCounterMetric in interface PrometheusMetricsWalkerfamily - information about the family being traversed such as the name, help description, etc.metric - the metric being processedindex - index of the metric being processed, where 0 is the first one.public void walkGaugeMetric(MetricFamily family, Gauge metric, int index)
PrometheusMetricsWalkerwalkGaugeMetric in interface PrometheusMetricsWalkerfamily - information about the family being traversed such as the name, help description, etc.metric - the metric being processedindex - index of the metric being processed, where 0 is the first one.public void walkSummaryMetric(MetricFamily family, Summary metric, int index)
PrometheusMetricsWalkerwalkSummaryMetric in interface PrometheusMetricsWalkerfamily - information about the family being traversed such as the name, help description, etc.metric - the metric being processedindex - index of the metric being processed, where 0 is the first one.public void walkHistogramMetric(MetricFamily family, Histogram metric, int index)
PrometheusMetricsWalkerwalkHistogramMetric in interface PrometheusMetricsWalkerfamily - information about the family being traversed such as the name, help description, etc.metric - the metric being processedindex - index of the metric being processed, where 0 is the first one.Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.