Class PrometheusMetricsCreator
- java.lang.Object
-
- org.apache.skywalking.oap.server.telemetry.prometheus.PrometheusMetricsCreator
-
- All Implemented Interfaces:
org.apache.skywalking.oap.server.library.module.Service,MetricsCreator
public class PrometheusMetricsCreator extends Object implements MetricsCreator
Create metrics instance for Prometheus exporter.
-
-
Field Summary
-
Fields inherited from interface org.apache.skywalking.oap.server.telemetry.api.MetricsCreator
HEALTH_METRIC_PREFIX
-
-
Constructor Summary
Constructors Constructor Description PrometheusMetricsCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CounterMetricscreateCounter(String name, String tips, MetricsTag.Keys tagKeys, MetricsTag.Values tagValues)GaugeMetricscreateGauge(String name, String tips, MetricsTag.Keys tagKeys, MetricsTag.Values tagValues)HistogramMetricscreateHistogramMetric(String name, String tips, MetricsTag.Keys tagKeys, MetricsTag.Values tagValues, double... buckets)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.skywalking.oap.server.telemetry.api.MetricsCreator
createHealthCheckerGauge, extractModuleName, isHealthCheckerMetrics
-
-
-
-
Method Detail
-
createCounter
public CounterMetrics createCounter(String name, String tips, MetricsTag.Keys tagKeys, MetricsTag.Values tagValues)
- Specified by:
createCounterin interfaceMetricsCreator
-
createGauge
public GaugeMetrics createGauge(String name, String tips, MetricsTag.Keys tagKeys, MetricsTag.Values tagValues)
- Specified by:
createGaugein interfaceMetricsCreator
-
createHistogramMetric
public HistogramMetrics createHistogramMetric(String name, String tips, MetricsTag.Keys tagKeys, MetricsTag.Values tagValues, double... buckets)
- Specified by:
createHistogramMetricin interfaceMetricsCreator
-
-