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, Moritz Halbritter
-
Constructor Summary
ConstructorDescriptionPrometheusScrapeEndpoint
(io.prometheus.metrics.model.registry.PrometheusRegistry prometheusRegistry) -
Method Summary
Modifier and TypeMethodDescriptionWebEndpointResponse<byte[]>
scrape
(PrometheusOutputFormat format, Set<String> includedNames)
-
Constructor Details
-
PrometheusScrapeEndpoint
public PrometheusScrapeEndpoint(io.prometheus.metrics.model.registry.PrometheusRegistry prometheusRegistry)
-
-
Method Details
-
scrape
@ReadOperation(producesFrom=PrometheusOutputFormat.class) public WebEndpointResponse<byte[]> scrape(PrometheusOutputFormat format, @Nullable Set<String> includedNames)
-