Class PrometheusScrapeEndpoint
java.lang.Object
org.springframework.boot.actuate.metrics.export.prometheus.PrometheusScrapeEndpoint
@Endpoint
that outputs metrics in a format that can be scraped by the
Prometheus server.- Since:
- 2.0.0
- Author:
- Jon Schneider, Johnny Lim
-
Constructor Summary
ConstructorDescriptionPrometheusScrapeEndpoint
(io.prometheus.client.CollectorRegistry collectorRegistry) -
Method Summary
-
Constructor Details
-
PrometheusScrapeEndpoint
public PrometheusScrapeEndpoint(io.prometheus.client.CollectorRegistry collectorRegistry)
-
-
Method Details
-
scrape
@ReadOperation(producesFrom=TextOutputFormat.class) public WebEndpointResponse<String> scrape(TextOutputFormat format, @Nullable Set<String> includedNames)
-