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

    • Method Detail

      • 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)