August 2019
Intermediate to advanced
256 pages
6h 43m
English
MicroProfile Metrics exposes metrics via a REST interface, by default, under the /metrics context root. You can find the code at https://github.com/PacktPublishing/Hands-On-Enterprise-Java-Microservices-with-Eclipse-MicroProfile/tree/master/Chapter05-metrics. Follow the README.md file to build the code, run it, and hit the http://localhost:8080/book-metrics/hello and http://localhost:8080/book-metrics endpoints a few times with your browser to generate some data.
Using this REST interface, it is easy to retrieve the data, for example, via the following curl ...
Read now
Unlock full access