@WebEndpoint(id="prometheus") public class PrometheusScrapeEndpoint extends Object
@Endpoint
that outputs metrics in a format that can be scraped by the
Prometheus server.Constructor and Description |
---|
PrometheusScrapeEndpoint(io.prometheus.client.CollectorRegistry collectorRegistry) |
public PrometheusScrapeEndpoint(io.prometheus.client.CollectorRegistry collectorRegistry)
@ReadOperation(produces="text/plain; version=0.0.4; charset=utf-8") public String scrape()