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

public abstract class BaseMetrics<T extends io.prometheus.client.SimpleCollector,C> extends Object
BaseMetrics parent class represents the metrics
  • Field Details

  • Constructor Details

  • Method Details

    • isIDReady

      protected boolean isIDReady()
    • getMetric

      protected C 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

      protected abstract T create(String[] labelNames)