public class PrometheusMetricsReporter extends AbstractMetricsReporter implements MetricsReporter
MetricsReporter.| Modifier and Type | Class and Description |
|---|---|
static class |
PrometheusMetricsReporter.Builder
This builder class is responsible for creating an instance of the Prometheus
metrics reporter.
|
metricLabels, STANDARD_SPAN_LABELS| Modifier and Type | Method and Description |
|---|---|
protected static String |
convertLabel(String label)
This method transforms the supplied label name to ensure it conforms to the required
Prometheus label format as defined by the regex "[a-zA-Z_:][a-zA-Z0-9_:]*".
|
protected String[] |
getLabelNames() |
static PrometheusMetricsReporter.Builder |
newMetricsReporter() |
void |
reportSpan(io.opentracing.contrib.api.SpanData spanData) |
getLabelValuespublic void reportSpan(io.opentracing.contrib.api.SpanData spanData)
reportSpan in interface MetricsReporterprotected static String convertLabel(String label)
label - The labelprotected String[] getLabelNames()
public static PrometheusMetricsReporter.Builder newMetricsReporter()
Copyright © 2017–2018 OpenTracing. All rights reserved.