tree: 1563afe0d5fe1721b2f9cf0ca03468e30dadd26f [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.MD
examples/micrometer/README.MD

jersey-micrometer-webapp

This example demonstrates basics of Micrometer Jersey integration

Contents

The mapping of the URI path space is presented in the following table:

URI pathResource classHTTP methods
/micro/timedMeasuredTimedResourceGET
/micro/metricsMetricsResourceGET
/micro/summarySummaryResourceGET

Sample Response

--- (micro/timed)
Requests to this method are measured. Use /init to see more
---- (micro/metrics)
Static meters are initialized, try summary. If you want more measurements just refresh this page several times.
---- (micro/summary)
Listing available meters
Many occurrences of the same name means that there are more meters which could be used with different tags, but this is actually a challenge to handle all available metrics :
http.timers;
http.shared.metrics;
Counts to the init page: 2, time spent on requests to the init page (millis): 2.759025
Requests to 'measure/timed' counts: 2, total time (millis): 40.110161

Running the Example

Run the example using Grizzly container as follows:

mvn clean compile exec:java