Class PrometheusReporter

java.lang.Object
org.nuxeo.runtime.metrics.AbstractMetricsReporter
org.nuxeo.runtime.metrics.reporter.PrometheusReporter
All Implemented Interfaces:
MetricsReporter

public class PrometheusReporter extends AbstractMetricsReporter
Reports metrics to Prometheus.
Since:
11.1
  • Field Details

    • DEFAULT_PORT

      protected static final int DEFAULT_PORT
      See Also:
    • port

      protected int port
    • zPort

      protected int zPort
    • server

      protected io.prometheus.client.exporter.HTTPServer server
  • Constructor Details

    • PrometheusReporter

      public PrometheusReporter()
  • Method Details

    • init

      public void init(long pollInterval, Map<String,String> options)
      Description copied from interface: MetricsReporter
      Called on new instance.
      Specified by:
      init in interface MetricsReporter
      Overrides:
      init in class AbstractMetricsReporter
    • start

      public void start(io.dropwizard.metrics5.MetricRegistry registry, io.dropwizard.metrics5.MetricFilter filter, Set<io.dropwizard.metrics5.MetricAttribute> deniedExpansions)
      Description copied from interface: MetricsReporter
      Starts metrics reporter.
    • stop

      public void stop()
      Description copied from interface: MetricsReporter
      Stops metrics reporter.