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 receiver autodiscover targets in kubernetes? #32965

Closed
ceastman-r7 opened this issue May 9, 2024 · 4 comments
Closed

jmx receiver autodiscover targets in kubernetes? #32965

ceastman-r7 opened this issue May 9, 2024 · 4 comments
Labels
enhancement New feature or request needs triage New item requiring triage receiver/jmx JMX Receiver

Comments

@ceastman-r7
Copy link

Component(s)

receiver/jmx

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

The problem is that the endpoint has to be hardcoded: https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/jmxreceiver#endpoint

datadog's jmx can autodiscovery: https://docs.datadoghq.com/containers/guide/autodiscovery-with-jmx/?tab=operator

Describe the solution you'd like

Some mechanism for autodiscovery of jmx endpoints for kubernetes.

Describe alternatives you've considered

No response

Additional context

No response

@ceastman-r7 ceastman-r7 added enhancement New feature or request needs triage New item requiring triage labels May 9, 2024
@github-actions github-actions bot added the receiver/jmx JMX Receiver label May 9, 2024
Copy link
Contributor

github-actions bot commented May 9, 2024

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

Copy link
Contributor

github-actions bot commented Jul 9, 2024

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@hughesjj
Copy link
Contributor

hughesjj commented Jul 22, 2024

Hey, this seems like a dupe of 31599, could I mark it as such?

TL;dr is that there are extensions/observers that can, in conjunction with receivercreator, dynamically add jmx, but there are some caveats

@ datadog, it seems they have you specify a port for autodiscovery

Set <JMX_PORT> as desired, as long as it matches between the annotations and JAVA_OPTS

in the context of the docker observer/receiver_creator, you would specify port == JMXPORT in the rules, similar to the redis example

      redis/1:
        # If this rule matches an instance of this receiver will be started.
        rule: type == "port" && port == 6379
        config:
          # Static receiver-specific config.
          password: secret
          # Dynamic configuration value.
          collection_interval: '`pod.annotations["collection_interval"]`'

@ceastman-r7
Copy link
Author

@hughesjj feel free to mark this as a duplicate. I am going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs triage New item requiring triage receiver/jmx JMX Receiver
Projects
None yet
Development

No branches or pull requests

2 participants