Class PrometheusScrapeEndpoint

java.lang.Object
org.springframework.boot.micrometer.metrics.autoconfigure.export.prometheus.PrometheusScrapeEndpoint

@WebEndpoint(id="prometheus") public class PrometheusScrapeEndpoint extends Object
@Endpoint that outputs metrics in a format that can be scraped by the Prometheus server.
Since:
4.0.0
  • Constructor Details

    • PrometheusScrapeEndpoint

      public PrometheusScrapeEndpoint(io.prometheus.metrics.model.registry.PrometheusRegistry prometheusRegistry, @Nullable Properties exporterProperties)
      Parameters:
      prometheusRegistry - the Prometheus registry to use
      exporterProperties - the properties used to configure Prometheus' ExpositionFormats
      Since:
      3.3.1
  • Method Details