Skip to content

Add JMX scraper version 1.50.0-alpha#43024

Closed
otelbot[bot] wants to merge 1 commit into
mainfrom
otelbot/add-jmx-scraper-1.50.0-alpha
Closed

Add JMX scraper version 1.50.0-alpha#43024
otelbot[bot] wants to merge 1 commit into
mainfrom
otelbot/add-jmx-scraper-1.50.0-alpha

Conversation

@otelbot

@otelbot otelbot Bot commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

Add JMX scraper version 1.50.0-alpha.

cc @open-telemetry/java-contrib-approvers

@otelbot otelbot Bot requested review from a team and atoulme as code owners September 27, 2025 01:59
@github-actions github-actions Bot added the receiver/jmx JMX Receiver label Sep 27, 2025
@github-actions github-actions Bot requested a review from rogercoll September 27, 2025 01:59
@songy23 songy23 added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Sep 28, 2025
Comment on lines +35 to 39
"e791ccfcfee9c0d299d07474d9bfcbfcbebf1181323be601220c8a823062ab99": {
version: "1.50.0-alpha",
jar: "JMX scraper",
},
"e791ccfcfee9c0d299d07474d9bfcbfcbebf1181323be601220c8a823062ab99": {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like the hash is wrong (duplicated)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

(cc @breedx-splk @robsunday @SylvainJuge as component owners on the Java side)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can confirm the hash is wrong here, it should have been d435d766b3cacc731713b95906b2204a1a4eab4ab58413163f6413573f35e0d3, as confirmed by the following command:

curl -s https://repo1.maven.org/maven2/io/opentelemetry/contrib/opentelemetry-jmx-scraper/1.50.0-alpha/opentelemetry-jmx-scraper-1.50.0-alpha.jar | sha256sum

The hash value of 1.49.0-alpha version has been reused, so maybe there is something off with the automation that generates this PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think I've found the probable cause of this duplicated hash:

  • the first two versions for 1.46.0 and 1.48.0 have been added manually and are correct
  • the automation uses a bogus URL, which results in a static 404 page, for which the hash is constant, hence the hash conflict.

We can get the correct hashes for 1.49.0 and 1.50.0 respectively with

curl -s https://repo1.maven.org/maven2/io/opentelemetry/contrib/opentelemetry-jmx-scraper/1.49.0-alpha/opentelemetry-jmx-scraper-1.49.0-alpha.jar|sha256sum
# b821f96df239d1e1078c0f51f07977bc375e56e92c2d96eb7954ad30e617c677  -

curl -s https://repo1.maven.org/maven2/io/opentelemetry/contrib/opentelemetry-jmx-scraper/1.50.0-alpha/opentelemetry-jmx-scraper-1.50.0-alpha.jar|sha256sum
# d435d766b3cacc731713b95906b2204a1a4eab4ab58413163f6413573f35e0d3  -

The fun thing is that I found this by chance using an invalid URL when investigating this.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've opened #43067 to fix the URL used and 1.49.0 hash.

Once the fix is merged, closing this PR and/or re-run the automation to update would help to validate the fix is effective.

songy23 pushed a commit that referenced this pull request Sep 30, 2025
#### Description

When support for the jmx-scraper component was added to the
`jmxreceiver`, it was not yet available in github release assets, hence
for automatic update automation it was downloaded from maven central.

Unfortunately, the URL pattern for maven central artifacts was bogus and
returned a 404, which in turn produced a constant hash, this failure was
silent for the update to 1.49.0, at least for the CI, as any user would
have not been able to use it.

We can now use the github release assets URL as `jmx-scraper` artifact
is now available, and thus the URL is consistent with the one used for
`jmx-metrics` artifact.

This was only caught when the update for 1.50.0 triggered a duplicate
hash because the same 404 page was hashed and added to the dictionary in
#43024.

cc @rogercoll
@songy23

songy23 commented Sep 30, 2025

Copy link
Copy Markdown
Member

Closing per the comment thread & waiting for bot to recreate it

@songy23 songy23 closed this Sep 30, 2025
@songy23 songy23 deleted the otelbot/add-jmx-scraper-1.50.0-alpha branch September 30, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

receiver/jmx JMX Receiver Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants