Metrics是一个Java库,它让您对代码在生产中所做的事情有了无与伦比的洞察力。
Metrics
Metrics是一个Java库,它让您对代码在生产中所做的事情有了无与伦比的洞察力。(Metrics is a Java library which gives you unparalleled insight into what your code does in production.)
Github stars Tracking Chart
对于常见的库,如Jetty、Logback、Log4j、Apache HttpClient、Ehcache、JDBI、Jersey等,和报告后端如Ganglia和Graphite,Metrics提供了全栈的可见性。
Main metrics
- Overview
-
Name With Owner dropwizard/metrics Primary Language Java Program language Java (Language Count: 3) Platform License: Apache License 2.0 - 所有者活动
-
Created At 2010-02-26 19:44:42 Pushed At 2025-07-24 08:36:39 Last Commit At Release Count 187 Last Release Name v5.0.1 (Posted on 2025-06-20 05:56:57) First Release Name v1.0.0 (Posted on 2010-02-27 12:57:19) - 用户参与
-
Stargazers Count 7.9k Watchers Count 362 Fork Count 1.8k Commits Count 4.1k Has Issues Enabled Issues Count 659 Issue Open Count 1 Pull Requests Count 3137 Pull Requests Open Count 1 Pull Requests Close Count 1019 - 项目设置
-
Has Wiki Enabled Is Archived Is Fork Is Locked Is Mirror Is Private
Metrics
Capturing JVM- and application-level metrics. So you know what's going on.
For more information, please see the documentation.
Versions
Version 4.x.x (Javadoc)
Version 4.x.x (the last release is 4.0.5) is Java 8/9 compatible and the most fresh release of Metrics. The version targets Java 8 and removes a lot of internal cruft from 3.2.x (for instance, there's no dependency on the Unsafe API and custom LongAdder
and ThreadLocalRandom
implementations). It's mostly compatible with the 3.2 API and the update should be painless in Java 8 environments. If you have a 3rd party application which is dependent on an old version of Metrics, you can force a new version by adding metrics-bom
to your Maven configuration. Check out the release notes for 4.0.0.
Source code for 4.1.x resides in the 4.1-development branch.
Source code for 4.0.x resides in the 4.0-maintenance branch.
Version 3.2.x (Javadoc)
Version 3.2.x (the last release is 3.2.6) is Java 6 compatible and the most stable release of Metrics. 3.2.* was actively developed in 2017 and has many new features compared to 3.1.x (check out the release notes). Currently 3.2.x version is in maintenance mode. No future development is planned, but bugfixes are ported and you can expect maintenance releases.
Source code for 3.2.x resides in the 3.2-maintenance branch.
Version 3.1.x (Javadoc)
Version 3.1.x (the last release is 3.1.5) is a Java 6 compatible release of Metrics. It's the most common distribution of Metrics, albeit not actively developed and maintained. Version 3.1.2 was released in April, 2015 and since then there's been only a handful of bugfixes ported to this branch. If you're using Metrics 3.1.* , please strongly consider upgrading to 3.2.* or 4.0.* , because this version is practically EOL. No future releases of 3.1.* are expected.
Source code for 3.1.x resides in the 3.1-maintenance branch.
Future development
New not-backward compatible features (for example, support for tags) will be implemented in a 5.x.x release. The release will have new Maven coordinates, a new package name and a backwards-incompatible API.
Source code for 5.x.x resides in the 5.0-development branch.
License
Copyright (c) 2010-2013 Coda Hale, Yammer.com, 2014-2018 Dropwizard Team
Published under Apache Software License 2.0, see LICENSE