-
Notifications
You must be signed in to change notification settings - Fork 154
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
[receiver/jmx] Add metric gatherer to artifacts #3262
Conversation
1764627
to
0a526ca
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should add some basic checks to https://github.com/signalfx/splunk-otel-collector/blob/main/.github/workflows/win-package-test.yml#L184 to verify installation of the jmx jar for the MSI.
98735e7
to
a5fb1db
Compare
97964ca
to
a415c9c
Compare
The integration test is dependent on an official collector release containing the changes made in this PR. The integration test is passing locally, but will fail in github CI until a new release of the Splunk distribution of the OpenTelemetry Collector is created. For this reason, I'm going to remove the integration test, and once this PR is merged, submit a new PR with the integration test. |
The integration test job does build the |
Ah, you're right, the line here does what I needed. I'll add the test back in. I only saw the makefile was referring to quay's latest image and got turned around. |
234ae7e
to
e9bc91f
Compare
7670fff
to
af88054
Compare
Are any docs required? At a minimum, I think we should document that the packages/images will install/include the jar. |
Also, please add an entry to https://github.com/signalfx/splunk-otel-collector/blob/main/CHANGELOG.md. |
To properly support the jmx receiver in Docker, the dockerfile has to download the JMX metrics gatherer, and have it available to the collector. This change adds this functionality to the linux/macos dockerfile, as well as the windows dockerfile. Also, adds an integration test getting metrics from a docker container.
- Update download URLs for consistency - Remove unecessary data copies - Fix file permissions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the tar package also include the jar?
Co-authored-by: Jeff Cheng <83052155+jeffreyc-splunk@users.noreply.github.com>
Yes, makes sense. @crobert-1 do you mind looking into this? |
Co-authored-by: Jeff Cheng <83052155+jeffreyc-splunk@users.noreply.github.com>
- Add java check in windows docker - Add jmx gatherer to tar
I've added it to the TAR, and added a test to make sure it's there. |
Co-authored-by: Ryan Fitzpatrick <10867373+rmfitzpatrick@users.noreply.github.com>
Co-authored-by: Ryan Fitzpatrick <10867373+rmfitzpatrick@users.noreply.github.com>
Co-authored-by: Ryan Fitzpatrick <10867373+rmfitzpatrick@users.noreply.github.com>
We currently don't have documentation for what's included in each package of the collector, but a jira issue has been opened to do the documentation work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please rebase and resolve conflicts.
To properly support the jmx receiver in Docker, the dockerfile has to download the JMX metrics gatherer, and have it available to the collector. This change adds this functionality to the linux/macos dockerfile, as well as the windows dockerfile.
Also, adds an integration test getting metrics from a docker container.