类 BaseMetrics<T extends io.prometheus.client.SimpleCollector,C>

java.lang.Object
org.apache.skywalking.oap.server.telemetry.prometheus.BaseMetrics<T,C>
直接已知子类:
PrometheusCounterMetrics, PrometheusGaugeMetrics

public abstract class BaseMetrics<T extends io.prometheus.client.SimpleCollector,C> extends Object
BaseMetrics parent class represents the metrics
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • 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.
      返回:
      metric reference if the service instance id has been initialized. Or NULL.
    • create

      protected abstract T create(String[] labelNames)