Skip to content

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