Skip to content

Expose numeric values (JmxGaugeMBean)#1451

Merged
arteam merged 2 commits intodropwizard:4.1-developmentfrom
guillermocalvo:jmx-gauge-mbean
Aug 9, 2019
Merged

Expose numeric values (JmxGaugeMBean)#1451
arteam merged 2 commits intodropwizard:4.1-developmentfrom
guillermocalvo:jmx-gauge-mbean

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