Class BaseMetrics<T extends io.prometheus.client.SimpleCollector,C>
java.lang.Object
org.apache.skywalking.oap.server.telemetry.prometheus.BaseMetrics<T,C>
- Direct Known Subclasses:
PrometheusCounterMetrics,PrometheusGaugeMetrics
BaseMetrics parent class represents the metrics
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MetricsTag.Keysprotected final Stringprotected final Stringprotected final MetricsTag.Values -
Constructor Summary
ConstructorsConstructorDescriptionBaseMetrics(String name, String tips, MetricsTag.Keys labels, MetricsTag.Values values) -
Method Summary
-
Field Details
-
name
-
tips
-
labels
-
values
-
-
Constructor Details
-
BaseMetrics
-
-
Method Details
-
isIDReady
protected boolean isIDReady() -
getMetric
Create real prometheus metrics with SkyWalking native labels, and provide to all metrics implementation. Metrics name should be unique.- Returns:
- metric reference if the service instance id has been initialized. Or NULL.
-
create
-