类 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.- 从以下版本开始:
- 2.0.0
构造器详细资料
PrometheusScrapeEndpoint
public PrometheusScrapeEndpoint(io.prometheus.client.CollectorRegistry collectorRegistry)
方法详细资料
scrape
@ReadOperation(produces="text/plain; version=0.0.4; charset=utf-8") public String scrape()