Class PrometheusEndpoint


  • @Path("/")
    public class PrometheusEndpoint
    extends Object
    Endpoint to scrap metrics in prometheus format.
    • Constructor Detail

      • PrometheusEndpoint

        public PrometheusEndpoint​(io.micrometer.prometheus.PrometheusMeterRegistry registry)
        Creates a new PrometheusEndpoint instance.
        Parameters:
        registry - the PrometheusMeterRegistry instance; ust bot be null.
    • Method Detail

      • prometheus

        @GET
        @Path("/prometheus")
        @Produces("text/plain")
        public String prometheus()