Interface PrometheusScrapingHandler


  • public interface PrometheusScrapingHandler
    A Vert.x Web Route handler for Prometheus metrics scraping.
    Author:
    Thomas Segismont
    • Method Detail

      • create

        static Handler<RoutingContext> create​(String registryName)
        Creates a Vert.x Web Route handler for Prometheus metrics scraping. The registry specified by registryName is used.
        Parameters:
        registryName - the backend metrics registry
        Returns:
        a Route handler for a specific metrics registry
        See Also:
        BackendRegistries.getNow(String)
      • create

        static Handler<RoutingContext> create​(io.micrometer.prometheusmetrics.PrometheusMeterRegistry registry)
        Creates a Vert.x Web Route handler for Prometheus metrics scraping. The registry specified by registry is used.
        Parameters:
        registry - the backend metrics registry
        Returns:
        a Route handler for a specific metrics registry