For Configuration information see Metrics Config
The metrics component allows users to track metrics for functionality on their services. It is based off the codahale github project. It includes the following metrics:
- Counter - A metric that simply counts the number of time some event has occurred.
- Gauge - Instantaneous measurements of something
- Timer - Times how long a specific event takes to complete
- Histogram - Tracks the distribution of a stream of values.
- Meter - Marks the occurrence of an event
For a working example of how this would work see Wookiee - Metrics Example
Add the jfrog repo to your project first:
<repositories>
<repository>
<id>JFrog</id>
<url>http://oss.jfrog.org/oss-release-local</url>
</repository>
</repositories>
Add latest version of wookiee:
<dependency>
<groupId>com.webtrends</groupId>
<artifactId>wookiee-metrics_2.11</artifactId>
<version>${wookiee.version}</version>
</dependency>