This example demonstrates basics of Micrometer Jersey integration
The mapping of the URI path space is presented in the following table:
| URI path | Resource class | HTTP methods |
|---|---|---|
| /micro/meter | JerseyResource | GET |
| /micro/metrics | JerseyResource | GET |
| /micro/metrics/metrics | JerseyResource | GET |
--- (micro/meter) Hello World! ---- (micro/metrics) Listing available meters: http.shared.metrics; ---- (micro/metric/metrics) Overall requests counts: 9, total time (millis): 35.799483
Run the example using Grizzly container as follows:
mvn clean compile exec:java