Class PrometheusSimpleclientScrapeEndpoint
java.lang.Object
org.springframework.boot.actuate.metrics.export.prometheus.PrometheusSimpleclientScrapeEndpoint
@Deprecated(since="3.3.0",
forRemoval=true)
@WebEndpoint(id="prometheus")
public class PrometheusSimpleclientScrapeEndpoint
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
@Endpoint
that uses the Prometheus simpleclient to output metrics in a
format that can be scraped by the Prometheus server.- Since:
- 2.0.0
- Author:
- Jon Schneider, Johnny Lim
-
Constructor Summary
ConstructorsConstructorDescriptionPrometheusSimpleclientScrapeEndpoint
(io.prometheus.client.CollectorRegistry collectorRegistry) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionscrape
(TextOutputFormat format, Set<String> includedNames) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
PrometheusSimpleclientScrapeEndpoint
public PrometheusSimpleclientScrapeEndpoint(io.prometheus.client.CollectorRegistry collectorRegistry) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
scrape
@ReadOperation(producesFrom=TextOutputFormat.class) public WebEndpointResponse<String> scrape(TextOutputFormat format, @Nullable Set<String> includedNames) Deprecated, for removal: This API element is subject to removal in a future version.
-
PrometheusScrapeEndpoint