-
Notifications
You must be signed in to change notification settings - Fork 127
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rmfitzpatrick
requested review from
anuraaga,
pmcollins and
trask
as code owners
October 21, 2020 22:25
rmfitzpatrick
force-pushed
the
default_metrics
branch
3 times, most recently
from
October 22, 2020 19:20
0dd6450
to
2ef6504
Compare
pmcollins
approved these changes
Oct 22, 2020
There was a problem hiding this 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.
contrib/jmx-metrics/src/main/java/io/opentelemetry/contrib/jmxmetrics/JmxClient.java
Outdated
Show resolved
Hide resolved
contrib/jmx-metrics/src/main/java/io/opentelemetry/contrib/jmxmetrics/JmxClient.java
Outdated
Show resolved
Hide resolved
return | ||
} | ||
|
||
[mbeans, values].transpose().each { mbean, value -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
transpose 😎
contrib/jmx-metrics/src/main/groovy/io/opentelemetry/contrib/jmxmetrics/InstrumentHelper.groovy
Outdated
Show resolved
Hide resolved
contrib/jmx-metrics/src/main/groovy/io/opentelemetry/contrib/jmxmetrics/MBeanHelper.groovy
Show resolved
Hide resolved
contrib/jmx-metrics/src/main/groovy/io/opentelemetry/contrib/jmxmetrics/MBeanHelper.groovy
Outdated
Show resolved
Hide resolved
contrib/jmx-metrics/src/main/groovy/io/opentelemetry/contrib/jmxmetrics/MBeanHelper.groovy
Outdated
Show resolved
Hide resolved
contrib/jmx-metrics/src/main/groovy/io/opentelemetry/contrib/jmxmetrics/MBeanHelper.groovy
Outdated
Show resolved
Hide resolved
contrib/jmx-metrics/src/main/groovy/io/opentelemetry/contrib/jmxmetrics/OtelHelper.groovy
Outdated
Show resolved
Hide resolved
...b/jmx-metrics/src/main/java/io/opentelemetry/contrib/jmxmetrics/GroovyMetricEnvironment.java
Show resolved
Hide resolved
rmfitzpatrick
force-pushed
the
default_metrics
branch
from
October 23, 2020 18:38
2ef6504
to
12d31f3
Compare
rmfitzpatrick
force-pushed
the
default_metrics
branch
from
October 26, 2020 14:00
12d31f3
to
9d95350
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Feature addition - Adds new
MBeanHelper
andInstrumentHelper
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)