Class PrometheusEndpoint


  • @Endpoint("prometheus")
    public class PrometheusEndpoint
    extends java.lang.Object
    Adds a management endpoint for Prometheus.
    Since:
    1.1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ID  
    • Constructor Summary

      Constructors 
      Constructor Description
      PrometheusEndpoint​(io.micrometer.prometheus.PrometheusMeterRegistry prometheusMeterRegistry)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String scrape()
      Scrapes the data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrometheusEndpoint

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

      • scrape

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