Skip to content

Commit

Permalink
Include Jetty metrics in list of supported metrics
Browse files Browse the repository at this point in the history
Closes gh-27299
  • Loading branch information
wilkinsona committed Jul 13, 2021
1 parent afb96af commit 2354dd5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2354dd5

Please sign in to comment.