Skip to content

Conversation

mcmho
Copy link
Contributor

@mcmho mcmho commented Aug 13, 2025

Description:

  • added copyJarForPackage for gradle to copy jar for packaging
  • added createTarBall to create a packaged tar.gz
  • added systemd service file

Existing Issue(s):
#1964

Testing:

  • 'gradle assemble' produces the opentelemetry-jmx-scraper-1.49.0-alpha.tar.gz
  • tested locally with a docker image with systemd support

Documentation:
updated README.MD

Outstanding items:
If we are going ahead with this, then let me add the .tar.gz to our Release page as well.

…lemetry#1964

 - open-telemetry#1964
 - added copyJarForPackage for gradle to copy jar for packaging
 - added createTarBall to create a packaged tar.gz
 - added systemd service file
…lemetry#1964

 - open-telemetry#1964
 - added copyJarForPackage for gradle to copy jar for packaging
 - added createTarBall to create a packaged tar.gz
 - added systemd service file
@otelbot-java-contrib
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

Comment on lines +17 to +27
## Installation
jmx-scraper is typically run as a standalone JAR file.
o use it, you generally need to download the latest JAR from the OpenTelemetry Java Contrib releases page
or retrieve it as a dependency from a Maven repository.
Once obtained, you can run it using the Java command line tool.
Please refer to [Usage](#usage).

For systemd service, the opentelemetry-jmx-scraper-x.xx.x.tar.gz tar.gz file is available
with the JAR and a ready to install systemd service file.


Copy link
Contributor

Choose a reason for hiding this comment

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

Whoops, I think this was added to the wrong README.md. Shouldn't be in the maven extension dir I think.

Copy link
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

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

So I don't think we should bundle/package a separate .tar or .tgz file -- in the java world the .jar should be enough, and we started publishing that with the last release.

I think that adding the systemd service file is fine, if it comes with docs on how to use it.

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.

6 participants