Skip to content

jmx-scraper test config sources #1750

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

Merged
merged 9 commits into from
Mar 13, 2025

Conversation

SylvainJuge
Copy link
Contributor

Fixes #1687

Adds tests to cover all the possible ways to provide configuration for jmx-scraper:

  • standard input
  • properties file
  • system properties
  • environment variables

Only the JmxConnectionTest has been parameterized to cover those as the connection with the remote JVM is the most complicated part as the JVM system environment need to be propagated from properties to global system properties.

The test fail when we remove the JmxScraper#propagateToSystemProperties method which handles system properties propagation.

Adding those tests did not uncover any new issue, thus they help prevent any future regression.

@trask
Copy link
Member

trask commented Mar 12, 2025

@SylvainJuge I'll merge once merge conflict is resolved, thanks!

@trask trask merged commit 4ac3ed1 into open-telemetry:main Mar 13, 2025
17 of 18 checks passed
@SylvainJuge SylvainJuge deleted the jmx-test-config-sources branch March 13, 2025 16:04
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.

[jmx-scraper] test all the possible ways to provide configuration
4 participants