The following artifacts are available:
- nl.grons:metrics4-scala: adds a nice Scala API to Dropwizard Metrics
- nl.grons:metrics4-pekko: support for measuring Pekko actors
- nl.grons:metrics4-akka: support for measuring Akka actors (versions 2.4.x, 2.5.x and 2.6.x, newer Akka versions are not supported)
- nl.grons:metrics4-hdr: adds support for HdrHistogram to increase the accuracy of histograms
Java 11 is required since version 4.3.0 (except builds for scala 2.11 and 2.12 which still target Java 8). Versions 4.0.x up to 4.2.x require Java 8.
The table shows the available 4.x artifacts of metrics-scala.
Metrics- scala version |
Artifact name | Scala version | Akka version | Build against | ||||||
2.11 | 2.12 | 2.13 | 3.1 | 3.3 | 2.4 | 2.5 | 2.6 | |||
4.3.3 | metrics4-scala | ✓ | ✓ | ✓ | ✓ | Dropwizard-metrics 4.2.28 | ||||
metrics4-pekko | ✓ | ✓ | ✓ | Pekko 1.1.1 | ||||||
metrics4-akka_a26 | ✓ | ✓ | ✓ | ✓ | Akka 2.6.20 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.31 | |||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | ✓ | Hdr 1.1.3/2.2.2 (**) | |||||
4.3.2 | metrics4-scala | ✓ | ✓ | ✓ | ✓ | Dropwizard-metrics 4.2.27 | ||||
metrics4-pekko | ✓ | ✓ | ✓ | Pekko 1.0.3 | ||||||
metrics4-akka_a26 | ✓ | ✓ | ✓ | ✓ | Akka 2.6.20 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.31 | |||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | ✓ | Hdr 1.1.3/2.2.2 (**) | |||||
4.3.1 | metrics4-scala | ✓ | ✓ | ✓ | ✓ | Dropwizard-metrics 4.2.25 | ||||
metrics4-pekko (*4) | ✓ | ✓ | ✓ | Pekko 1.0.2 | ||||||
metrics4-akka_a26 | ✓ | ✓ | ✓ | ✓ | Akka 2.6.20 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.31 | |||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | ✓ | Hdr 1.1.3/2.2.2 (**) | |||||
4.3.0 | metrics4-scala | ✓ | ✓ | ✓ | ✓ | Dropwizard-metrics 4.2.19 | ||||
metrics4-pekko (*4) | ✓ | ✓ | ✓ | Pekko 1.0.1 | ||||||
metrics4-akka_a26 | ✓ | ✓ | ✓ | ✓ | Akka 2.6.20 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.31 | |||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | ✓ | Hdr 1.1.3/2.1.12 (**) | |||||
4.2.9 | metrics4-scala | ✓ | ✓ | ✓ | ✓ | Dropwizard-metrics 4.2.9 | ||||
metrics4-akka_a26 | ✓ | ✓ | ✓ | ✓ | Akka 2.6.19 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.31 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | ✓ | Hdr 1.1.3/2.1.12 (**) | |||||
4.2.8 | metrics4-scala | ✓ | ✓ | ✓ | ✓ | Dropwizard-metrics 4.2.7 | ||||
metrics4-akka_a26 | ✓ | ✓ | ✓ | ✓ | Akka 2.6.18 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.31 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | ✓ | Hdr 1.1.3/2.1.12 (**) | |||||
4.1.19 | metrics4-scala | ✓ | ✓ | ✓ | Dropwizard-metrics 4.1.19 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.31 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | Hdr 1.1.0/2.1.12 (**) | ||||||
4.1.14 | metrics4-scala | ✓ | ✓ | ✓ | Dropwizard-metrics 4.1.14 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.31 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | Hdr 1.1.0/2.1.12 (**) | ||||||
4.1.9 | metrics4-scala | ✓ | ✓ | ✓ | Dropwizard-metrics 4.1.9 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.31 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | Hdr 1.1.0/2.1.12 (**) | ||||||
4.1.5 | metrics4-scala | ✓ | ✓ | ✓ | Dropwizard-metrics 4.1.5 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.26 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | Hdr 1.1.0/2.1.12 (**) | ||||||
4.1.4 | metrics4-scala | ✓ | ✓ | ✓ | Dropwizard-metrics 4.1.4 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.26 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | Hdr 1.1.0/2.1.12 (**) | ||||||
4.1.1 | metrics4-scala | ✓ | ✓ | ✓ | Dropwizard-metrics 4.1.1 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.26 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | Hdr 1.1.0/2.1.11 (**) | ||||||
4.0.8 | metrics4-scala | ✓ | ✓ | ✓ | Dropwizard-metrics 4.1.0 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.23 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | Hdr 1.1.0/2.1.11 (**) | ||||||
4.0.7 | metrics4-scala | ✓ | ✓ | ✓ | Dropwizard-metrics 4.1.0 | |||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | ✓ | Akka 2.5.23 | |||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | ✓ | Hdr 1.1.0/2.1.11 (**) | ||||||
4.0.6 | metrics4-scala | ✓ | ✓ | Dropwizard-metrics 4.1.0 | ||||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | Akka 2.5.23 | ||||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | Hdr 1.1.0/2.1.11 (**) | |||||||
4.0.5 | metrics4-scala | ✓ | ✓ | Dropwizard-metrics 4.0.5 | ||||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | Akka 2.5.22 | ||||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | Hdr 1.1.0/2.1.11 (**) | |||||||
4.0.4 | metrics4-scala | ✓ | ✓ | Dropwizard-metrics 4.0.5 | ||||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | Akka 2.5.19 | ||||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | Hdr 1.1.0/2.1.11 (**) | |||||||
4.0.3 | metrics4-scala | ✓ | ✓ | Dropwizard-metrics 4.0.3 | ||||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | Akka 2.5.18 | ||||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | Hdr 1.1.0/2.1.10 (**) | |||||||
4.0.2 | metrics4-scala | ✓ | ✓ | Dropwizard-metrics 4.0.3 | ||||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | Akka 2.5.18 | ||||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | Hdr 1.1.0/2.1.10 (**) | |||||||
4.0.1 | metrics4-scala | ✓ | ✓ | Dropwizard-metrics 4.0.1 | ||||||
metrics4-akka_a25 | ✓ | ✓ | ✓ | Akka 2.5.8 | ||||||
metrics4-akka_a24 | ✓ | ✓ | ✓ | ✓ | ✓ | Akka 2.4.20 | ||||
metrics4-scala-hdr | ✓ | ✓ | Hdr 1.1.0/2.1.9 (**) | |||||||
4.0.0 | Do not use! (***) |
(*) Scala pre-releases are only supported till the next version of metrics-scala.
(**) The first number is the version of "org.mpierce.metrics.reservoir" % "hdrhistogram-metrics-reservoir"
,
the second the version of "org.hdrhistogram" % "HdrHistogram"
.
(***) nl.grons:metrics-scala:4.0.0
was accidentally released as well. Do not use it as it will give
binary compatibility problems.
(*4) Due to problems with authentication at maven central, the metrics4-pekko modules 4.3.0 and 4.3.1 got lost and are no longer present in maven central.
This table contains all available versions of metrics-scala.
Metrics- scala version |
Metrics- core version |
Akka- version |
Scala version | Hdr version (****) |
||||||
2.9. 1 |
2.9. 1-1 |
2.9. 2 |
2.9. 3 |
2.10.x | 2.11.x | 2.12.x | ||||
2.1.2 | same | ✓ | ✓ | ✓ | ||||||
2.1.3 | same | ✓ | ✓ | ✓ | ||||||
2.1.4 (*) | same | ✓ | ✓ | ✓ | ||||||
2.1.5 (*) | same | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||
2.2.0 (**) | same | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
3.0.0 | same | ✓ | ✓ | ✓ | ✓ | ✓ | ||||
3.0.1 | same | 2.2.0 (***) | ✓ | ✓ | ✓ | ✓ | ✓ | |||
3.0.2 | 3.0.1 | 2.2.0 (***) | ✓ | ✓ | ✓ | ✓ | ✓ | |||
3.0.3 | 3.0.1 | 2.2.0 (***) | ✓ | ✓ | ✓ | ✓ | ✓ | |||
3.0.3_a2.1.0 | 3.0.1 | 2.1.0 | ✓ | |||||||
3.0.4 | 3.0.1 | 2.2.0 | ✓ | ✓ | ✓ | ✓ | ✓ | |||
3.0.5 | 3.0.2 | ✓ | ✓ | ✓ | ✓ | |||||
3.0.5_a2.1 | 3.0.2 | 2.1.4 | ✓ | |||||||
3.0.5_a2.2 | 3.0.2 | 2.2.4 | ✓ | |||||||
3.0.5_a2.3 | 3.0.2 | 2.3.0 | ✓ | |||||||
3.1.0 | 3.0.2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |||
3.1.0_a2.1 | 3.0.2 | 2.1.4 | ✓ | |||||||
3.1.0_a2.2 | 3.0.2 | 2.2.4 | ✓ | |||||||
3.1.0_a2.3 | 3.0.2 | 2.3.2 | ✓ | ✓ | ||||||
3.1.1 | 3.0.2 | ✓ | ✓ | |||||||
3.1.1_a2.1 | 3.0.2 | 2.1.4 | ✓ | |||||||
3.1.1_a2.2 | 3.0.2 | 2.2.4 | ✓ | |||||||
3.1.1_a2.3 | 3.0.2 | 2.3.2 | ✓ | ✓ | ||||||
3.1.1.1_a2.3 | 3.0.2 | 2.3.2 | ✓ | |||||||
3.2.0 | 3.0.2 | ✓ | ✓ | |||||||
3.2.0_a2.1 | 3.0.2 | 2.1.4 | ✓ | |||||||
3.2.0_a2.2 | 3.0.2 | 2.2.4 | ✓ | |||||||
3.2.0_a2.3 | 3.0.2 | 2.3.2 | ✓ | ✓ | ||||||
3.2.1 | 3.0.2 | ✓ | ✓ | |||||||
3.2.1_a2.1 | 3.0.2 | 2.1.4 | ✓ | |||||||
3.2.1_a2.2 | 3.0.2 | 2.2.4 | ✓ | |||||||
3.2.1_a2.3 | 3.0.2 | 2.3.5 | ✓ | ✓ | ||||||
3.3.0 | 3.1.0 | ✓ | ✓ | |||||||
3.3.0_a2.1 | 3.1.0 | 2.1.4 | ✓ | |||||||
3.3.0_a2.2 | 3.1.0 | 2.2.4 | ✓ | |||||||
3.3.0_a2.3 | 3.1.0 | 2.3.6 | ✓ | ✓ | ||||||
3.4.0 | 3.1.0 | ✓ | ✓ | 1.1.0/2.1.6 | ||||||
3.4.0_a2.1 | 3.1.0 | 2.1.4 | ✓ | 1.1.0/2.1.6 | ||||||
3.4.0_a2.2 | 3.1.0 | 2.2.5 | ✓ | 1.1.0/2.1.6 | ||||||
3.4.0_a2.3 | 3.1.0 | 2.3.9 | ✓ | ✓ | 1.1.0/2.1.6 | |||||
3.5.0 | 3.1.2 | ✓ | ✓ | 1.1.0/2.1.6 | ||||||
3.5.0_a2.1 | 3.1.2 | 2.1.4 | ✓ | 1.1.0/2.1.6 | ||||||
3.5.0_a2.2 | 3.1.2 | 2.2.5 | ✓ | 1.1.0/2.1.6 | ||||||
3.5.0_a2.3 | 3.1.2 | 2.3.9 | ✓ | ✓ | 1.1.0/2.1.6 | |||||
3.5.1 | 3.1.2 | ✓ | ✓ | 1.1.0/2.1.6 | ||||||
3.5.1_a2.1 | 3.1.2 | 2.1.4 | ✓ | 1.1.0/2.1.6 | ||||||
3.5.1_a2.2 | 3.1.2 | 2.2.5 | ✓ | 1.1.0/2.1.6 | ||||||
3.5.1_a2.3 | 3.1.2 | 2.3.11 | ✓ | ✓ | 1.1.0/2.1.6 | |||||
3.5.2 | 3.1.2 | ✓ | ✓ | 1.1.0/2.1.6 | ||||||
3.5.2_a2.2 | 3.1.2 | 2.2.5 | ✓ | 1.1.0/2.1.6 | ||||||
3.5.2_a2.3 | 3.1.2 | 2.3.13 | ✓ | ✓ | 1.1.0/2.1.6 | |||||
3.5.3 | 3.1.2 | ✓ | ✓ | 1.1.0/2.1.6 | ||||||
3.5.3_a2.2 | 3.1.2 | 2.2.5 | ✓ | 1.1.0/2.1.6 | ||||||
3.5.3_a2.3 | 3.1.2 | 2.3.14 / 2.4.x | ✓ | ✓ | 1.1.0/2.1.6 | |||||
3.5.4 | 3.1.2 | ✓ | ✓ | 1.1.0/2.1.6 | ||||||
3.5.4_a2.2 | 3.1.2 | 2.2.5 | ✓ | 1.1.0/2.1.6 | ||||||
3.5.4_a2.3 | 3.1.2 | 2.3.15 / 2.4.x | ✓ | ✓ | 1.1.0/2.1.6 | |||||
3.5.5 | 3.1.2 | ✓ | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.5_a2.2 | 3.1.2 | 2.2.5 | ✓ | 1.1.0/2.1.9 | ||||||
3.5.5_a2.3 | 3.1.2 | 2.3.15 / 2.4.x | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.5_a2.4 | 3.1.2 | 2.4.12 | ✓ | 1.1.0/2.1.9 | ||||||
3.5.6 | 3.2.0 | ✓ | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.6_a2.3 | 3.2.0 | 2.3.16 / 2.4.x | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.6_a2.4 | 3.2.0 | 2.4.17 | ✓ | 1.1.0/2.1.9 | ||||||
3.5.7 | 3.2.2 | ✓ | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.7_a2.3 | 3.2.2 | 2.3.16 / 2.4.x / 2.5.x | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.7_a2.4 | 3.2.2 | 2.4.18 / 2.5.x | ✓ | 1.1.0/2.1.9 | ||||||
3.5.8 | 3.2.2 | ✓ | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.8_a2.3 | 3.2.2 | 2.3.16 / 2.4.x / 2.5.x | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.8_a2.4 | 3.2.2 | 2.4.18 / 2.5.x | ✓ | 1.1.0/2.1.9 | ||||||
3.5.9 | 3.2.2 | ✓ | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.9_a2.3 | 3.2.2 | 2.3.16 / 2.4.x / 2.5.x | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.9_a2.4 | 3.2.2 | 2.4.18 / 2.5.x | ✓ | 1.1.0/2.1.9 | ||||||
3.5.10 | 3.2.2 | ✓ | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.10_a2.3 | 3.2.2 | 2.3.16 / 2.4.x / 2.5.x | ✓ | ✓ | 1.1.0/2.1.9 | |||||
3.5.10_a2.4 | 3.2.2 | 2.4.18 / 2.5.x | ✓ | 1.1.0/2.1.9 |
If you need another version mix please open an issue, or sent an email to the metrics mailing list.
(*) Only the versions 2.1.4 and 2.1.5 support OSGI.
(**) Metrics-core 2.2.0 has a small bug that makes it inconvenient to use JMX.
(***) Metrics-scala 3.0.1
, 3.0.2
and 3.0.3
erroneously depend on Akka [2.2,)
.
When Akka came with pre-releases of 2.3 this wont work (2.2 and 2.3 are not binary compatible).
Either upgrade metrics-scala to at least 3.0.4
or fix the Akka dependency in your project to 2.2.0
.
Note: For Akka 2.4 (scala 2.10 and 2.11) you can use the builds for Akka 2.3.
Note: For Akka 2.5 (scala 2.11 and 2.12) you can use the builds for Akka 2.4.
Note: It might be wise to use the latest minor-version of Akka. For example 2.1.4
instead of 2.1.0
, 2.2.4
instead of 2.2.0
, and 2.3.6
instead of 2.3.0
.
To do this you can fix the Akka version in your project's build configuration.
(****) Hdrhistogram is an optional dependency.
The first number is the version of "org.mpierce.metrics.reservoir" % "hdrhistogram-metrics-reservoir"
, the second
the version of "org.hdrhistogram" % "HdrHistogram"
. Both can probably be upgraded to a later (minor) release.