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

JMX Metrics: Improved MBean and Instrument helpers #16

Merged
merged 4 commits into from
Oct 27, 2020

Conversation

rmfitzpatrick
Copy link
Contributor

@rmfitzpatrick rmfitzpatrick commented Oct 21, 2020

Description:
Feature addition - Adds new MBeanHelper and InstrumentHelper utilities so that custom and target Groovy scripts are easier to implement. Also adopts these helpers with included JVM target metrics for more context.

Existing Issue(s):
In my opinion, this gets us a bit closer to #5 as the updated OtelHelper functionality will likely mirror the static scripts in some capacity.

Testing:

Added unit tests.

Documentation:

Updated readmes.

Outstanding items:

Existing Cassandra target system script should be updated to use this new system.
I also intend to correct the JVM target metric docs shortly as they are partially complete at the moment. (edit: completed)

Copy link
Member

@pmcollins pmcollins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some minor stuff. Looks groovy to me.

return
}

[mbeans, values].transpose().each { mbean, value ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transpose 😎

@rmfitzpatrick rmfitzpatrick merged commit c6680e3 into master Oct 27, 2020
@rmfitzpatrick rmfitzpatrick deleted the default_metrics branch October 27, 2020 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants