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

ActiveMQ integration doesn't work with ActiveMQ Artemis #1857

Open
ViliusS opened this issue Jan 14, 2025 · 1 comment · May be fixed by #1867
Open

ActiveMQ integration doesn't work with ActiveMQ Artemis #1857

ViliusS opened this issue Jan 14, 2025 · 1 comment · May be fixed by #1867

Comments

@ViliusS
Copy link

ViliusS commented Jan 14, 2025

Describe the bug
Ops agent documentation here https://cloud.google.com/monitoring/agent/ops-agent/third-party/activemq advertises that ActiveMQ integration works with ActiveMQ Artemis 2.x brokers however it doesn't work. JMX metric keys have different format in Artemis so they are not returned to monitoring.

To Reproduce
Steps to reproduce the behavior:

  1. Start a GCE VM with image 'rocky-linux-9-v20240515'
  2. Install Ops Agent version 'google-cloud-ops-agent-2.52.0-1.el9.x86_64.rpm'
  3. Install Artemis broker and enable JMX connector in management.xml
  4. Customize the agent with configuration and restart the agent
metrics:
  receivers:
    activemq:
      type: activemq
      endpoint: localhost:1099
      collection_interval: 15s
      username: artemis
      password: artemis
  service:
    pipelines:
      activemq:
        receivers:
          - activemq

  1. netstat -an |grep LISTEN shows that the agent connected to JMX management endpoint, but not metrics are gathered.

Expected behavior
ActiveMQ integration should work with ActiveMQ Artemis or documentation should be adjusted to remove Artemis from supported app list.

Additional context
Using JVM ops agent integration on the same Artemis installation works, so this is not the issue with Artemis or JMX configuration.

@schmikei
Copy link
Collaborator

I did some testing here and I don't think Artemis MBeans should have been listed as support as the jmx targets for activemq are org.apache.activemq and not org.apache.activemq.artemis I've gone ahead and created a PR to remove the support from documentation #1867

Attached some screenshots of the differences in the MBeans

Image

Image

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 a pull request may close this issue.

2 participants