-
Notifications
You must be signed in to change notification settings - Fork 132
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 gatherer logs warnings "Instrument ... has recorded multiple values for the same attributes" #936
Comments
otel.mbeand()
only collects attributes of a single matched MBeanotel.mbeans()
only collects attributes of a single matched MBean
otel.mbeans()
only collects attributes of a single matched MBean
cc: jmx-metrics component owners @breedx-splk @Mrod1598 @rmfitzpatrick @dehaansa |
I was able to repeat the test and verify the behavior (warning is emitted). |
#253 was about duplicate instrument registration. This is about one (or more) callbacks for an instrument recording values for the same set of attributes, which is indeed an error that the SDK should warn about. |
Is the issue that the
? |
#949 was merged and should be available in 1.29.0. Let us know if the issue persists after integrating the next release. |
Component(s)
jmx-metrics
What happened?
Description
Using JMX Gatherer
otel.mbeans
to match a collection of MBeans consistently emits the warningInstrument ...has recorded multiple values for the same attributes
Steps to Reproduce
Run
jmx-gatherer
with the following configuration:(Groovy script snippet copied from jvm metrics)
Expected Result
I expected no warnings to be logged
Actual Result
I got warning messages
WARNING: Instrument jvm.gc.collections.count has recorded multiple values for the same attributes.
Component version
1.27.0-alpha
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: