mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Include Jetty metrics in list of supported metrics
Closes gh-27299
This commit is contained in:
parent
afb96af0eb
commit
2354dd5ccb
@ -2123,6 +2123,7 @@ Spring Boot registers the following core metrics when applicable:
|
||||
** Number of classes loaded/unloaded
|
||||
* CPU metrics
|
||||
* File descriptor metrics
|
||||
* Jetty metrics
|
||||
* Kafka consumer, producer, and streams metrics
|
||||
* Log4j2 metrics: record the number of events logged to Log4j2 at each level
|
||||
* Logback metrics: record the number of events logged to Logback at each level
|
||||
@ -2384,6 +2385,12 @@ For more details refer to {spring-kafka-docs}#micrometer-native[Micrometer Nativ
|
||||
|
||||
|
||||
|
||||
[[production-ready-metrics-jetty]]
|
||||
==== Jetty Metrics
|
||||
Auto-configuration will bind metrics for Jetty's `ThreadPool` using Micrometer's `JettyServerThreadPoolMetrics`.
|
||||
|
||||
|
||||
|
||||
[[production-ready-metrics-custom]]
|
||||
=== Registering custom metrics
|
||||
To register custom metrics, inject `MeterRegistry` into your component, as shown in the following example:
|
||||
|
Loading…
Reference in New Issue
Block a user