Class PrometheusScrapeEndpoint
- java.lang.Object
- org.springframework.boot.actuate.metrics.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:
- 2.0.0
Constructor Summary
Constructors Constructor Description PrometheusScrapeEndpoint(io.prometheus.client.CollectorRegistry collectorRegistry)
Constructor Detail
PrometheusScrapeEndpoint
public PrometheusScrapeEndpoint(io.prometheus.client.CollectorRegistry collectorRegistry)
Method Detail
scrape
@ReadOperation(produces="text/plain; version=0.0.4; charset=utf-8") public String scrape()