Class PrometheusReporter

  • All Implemented Interfaces:
    com.codahale.metrics.Reporter, Closeable, AutoCloseable

    public class PrometheusReporter
    extends com.codahale.metrics.ScheduledReporter
    • Constructor Detail

      • PrometheusReporter

        protected PrometheusReporter​(com.codahale.metrics.MetricRegistry registry,
                                     PrometheusSender prometheus,
                                     String prefix,
                                     com.codahale.metrics.MetricFilter filter,
                                     ScheduledExecutorService executor,
                                     boolean shutdownExecutorOnStop)
        Creates a new PrometheusReporter instance.
        Parameters:
        registry - the MetricRegistry containing the metrics this reporter will report
        prometheus - the PrometheusSender which is responsible for sending metrics to a Carbon server via a transport protocol
        prefix - the prefix of all metric names (may be null)
        filter - the filter for which metrics to report
        executor - the executor to use while scheduling reporting of metrics (may be null).
        shutdownExecutorOnStop - if true, then executor will be stopped in same time with this reporter