Class PrometheusMetricsProvider

    • Constructor Detail

      • PrometheusMetricsProvider

        public PrometheusMetricsProvider()
      • PrometheusMetricsProvider

        public PrometheusMetricsProvider​(io.prometheus.client.CollectorRegistry registry)
    • Method Detail

      • start

        public void start​(org.apache.commons.configuration.Configuration conf)
        Description copied from interface: StatsProvider
        Initialize the stats provider by loading the given configuration conf.
        Specified by:
        start in interface StatsProvider
        Parameters:
        conf - Configuration to configure the stats provider.
      • stop

        public void stop()
        Description copied from interface: StatsProvider
        Close the stats provider.
        Specified by:
        stop in interface StatsProvider
      • getStatsLogger

        public StatsLogger getStatsLogger​(java.lang.String scope)
        Description copied from interface: StatsProvider
        Return the stats logger to a given scope.
        Specified by:
        getStatsLogger in interface StatsProvider
        Parameters:
        scope - Scope for the given stats
        Returns:
        stats logger for the given scope
      • writeAllMetrics

        public void writeAllMetrics​(java.io.Writer writer)
                             throws java.io.IOException
        Specified by:
        writeAllMetrics in interface StatsProvider
        Throws:
        java.io.IOException
      • getStatsName

        public java.lang.String getStatsName​(java.lang.String... statsComponents)
        Description copied from interface: StatsProvider
        Return the fully qualified stats name comprised of given statsComponents.
        Specified by:
        getStatsName in interface StatsProvider
        Parameters:
        statsComponents - stats components to comprise the fully qualified stats name
        Returns:
        the fully qualified stats name
      • rotateLatencyCollection

        void rotateLatencyCollection()