Class PrometheusEndpoint
java.lang.Object
io.micronaut.configuration.metrics.micrometer.prometheus.management.PrometheusEndpoint
Adds a management endpoint for Prometheus.
- Since:
- 1.1
- Author:
- graemerocher
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrometheusEndpoint(io.micrometer.prometheusmetrics.PrometheusMeterRegistry prometheusMeterRegistry) PrometheusEndpoint(io.micrometer.prometheusmetrics.PrometheusMeterRegistry prometheusMeterRegistry, ExecutorService scrapeExecutor) -
Method Summary
Modifier and TypeMethodDescriptionscrape()Deprecated.Use the streamed endpoint response instead.Scrapes the data.
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
PrometheusEndpoint
public PrometheusEndpoint(io.micrometer.prometheusmetrics.PrometheusMeterRegistry prometheusMeterRegistry) - Parameters:
prometheusMeterRegistry- The meter registry
-
PrometheusEndpoint
@Inject public PrometheusEndpoint(io.micrometer.prometheusmetrics.PrometheusMeterRegistry prometheusMeterRegistry, @Named("blocking") ExecutorService scrapeExecutor) - Parameters:
prometheusMeterRegistry- The meter registryscrapeExecutor- The executor used to stream the scrape
-
-
Method Details
-
scrape
Deprecated.Use the streamed endpoint response instead.Scrapes the data.- Returns:
- the data
-
scrapeStream
Scrapes the data.- Returns:
- the data
-