@WebEndpoint(id="prometheus") public class PrometheusScrapeEndpoint extends java.lang.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) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
scrape(java.util.Set<java.lang.String> includedNames) |
public PrometheusScrapeEndpoint(io.prometheus.client.CollectorRegistry collectorRegistry)
@ReadOperation(produces="text/plain; version=0.0.4; charset=utf-8") public java.lang.String scrape(@Nullable java.util.Set<java.lang.String> includedNames)