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
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 -
Method Summary
Modifier and TypeMethodDescriptioncreateCounter(String name, String tips, MetricsTag.Keys tagKeys, MetricsTag.Values tagValues) createGauge(String name, String tips, MetricsTag.Keys tagKeys, MetricsTag.Values tagValues) createHistogramMetric(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, waitMethods inherited from interface org.apache.skywalking.oap.server.telemetry.api.MetricsCreator
createHealthCheckerGauge, extractModuleName, isHealthCheckerMetrics
-
Constructor Details
-
PrometheusMetricsCreator
public PrometheusMetricsCreator()
-
-
Method Details
-
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
-