Use the following commands to build run the application:
$ mvn clean package
$ java -jar target/livelessons-operations-metrics-1.0.0-SNAPSHOT.jar
Several metrics are automatically logged out of the box, however, it is also possible to
log your own values. The ExampleService
shows how to call the CounterService
and the
GaugeService
.
The PublicMetrics
interface allows you to expose information from any source to the
metrics system. The ExamplePublicMetrics
provides an example.