java.lang.Object
io.micronaut.configuration.metrics.micrometer.prometheus.management.PrometheusEndpoint

@Endpoint("prometheus") public class PrometheusEndpoint extends Object
Adds a management endpoint for Prometheus.
Since:
1.1
Author:
graemerocher
  • Field Details

  • Constructor Details

    • PrometheusEndpoint

      public PrometheusEndpoint(io.micrometer.prometheus.PrometheusMeterRegistry prometheusMeterRegistry)
      Parameters:
      prometheusMeterRegistry - The meter registry
  • Method Details

    • scrape

      @Read(produces="text/plain; version=0.0.4") public String scrape()
      Scrapes the data.
      Returns:
      the data