Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose numeric values (JmxGaugeMBean) #1451

Merged
merged 2 commits into from
Aug 9, 2019
Merged

Expose numeric values (JmxGaugeMBean) #1451

merged 2 commits into from
Aug 9, 2019

Conversation

guillermocalvo
Copy link
Contributor

The purpose of this PR is to allow for easy visualization of gauges in Java Mission Control.

Class JmxGaugeMBean was updated so that it will now expose numeric values as Number. If the gauge does not represent a number, then the exposed value will be 0. The actual value can be accessed through Value in any case.

@guillermocalvo
Copy link
Contributor Author

Anybody home? CC @dropwizard-committers

@arteam arteam merged commit 5b85856 into dropwizard:4.1-development Aug 9, 2019
@arteam
Copy link
Member

arteam commented Aug 9, 2019

LGTM, thanks for contributing! I am going to make a 4.0.* release with this change.

@arteam arteam added this to the 4.1.1 milestone Aug 9, 2019
arteam pushed a commit that referenced this pull request Aug 9, 2019
* Add attribute 'Number' to JmxGaugeMBean

* Update JmxReporterTest

Fixes #1408
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JmxReporter's JmxGauge returns Object which does not allow graphing
2 participants