Skip to content
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

JMX Metrics Gatherer should be able to specify both jmx.target.system and jmx.groovy.script #937

Open
sirianni opened this issue Jun 27, 2023 · 3 comments · May be fixed by #1339
Open

JMX Metrics Gatherer should be able to specify both jmx.target.system and jmx.groovy.script #937

sirianni opened this issue Jun 27, 2023 · 3 comments · May be fixed by #1339
Assignees
Labels
component: jmx-metrics help wanted Extra attention is needed type: enhancement New feature or request

Comments

@sirianni
Copy link

Component(s)

jmx-metrics

Is your feature request related to a problem? Please describe.

I'd like to collect both jvm metrics and custom application metrics with a single instance of JMX Metrics Gatherer.

otel.jmx.service.url=service:jmx:rmi:///jndi/rmi://jetty:7203/jmxrmi
otel.jmx.target.system=jvm
otel.jmx.groovy.script=/script.groovy

This configuration yields an error

Exception in thread "main" io.opentelemetry.contrib.jmxmetrics.ConfigurationException: Only one of otel.jmx.groovy.script or otel.jmx.target.system can be specified.

Describe the solution you'd like

I'd like the ability to specify both options.

It looks like the code already supports multiple scripts so it should be a relatively simple change.

Describe alternatives you've considered

Running multiple JMX Gatherer instances. This requires more configuration and is an inefficient use of resources.

Additional context

No response

@trask
Copy link
Member

trask commented Jun 27, 2023

cc: jmx-metrics component owners @breedx-splk @Mrod1598 @rmfitzpatrick @dehaansa

@breedx-splk breedx-splk added the type: enhancement New feature or request label Jun 29, 2023
@breedx-splk breedx-splk added the help wanted Extra attention is needed label Oct 4, 2023
@BassemElMasry
Copy link

Hello! Is this up for grabs?

@jaydeluca
Copy link

@BassemElMasry are you still working on this? If not, I believe I have a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: jmx-metrics help wanted Extra attention is needed type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants