Skip to content

collect_jvm_metrics is advertised but doesn't work with ActiveMQ integration #1856

@ViliusS

Description

@ViliusS

Describe the bug
Ops Agent advertises "collect_jvm_metrics" parameter in the logs and it allows to set it, however parameter doesn't do anything.

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. Customize the agent with configuration and restart the agent
metrics:
  receivers:
    activemq:
      type: activemq
      endpoint: localhost:1099
      collection_interval: 15s
      collect_jvm_metrics: true
      username: admin
      password: admin
  service:
    pipelines:
      activemq:
        receivers:
          - activemq

  1. See Cloud Monitoring that no JVM metrics are collected.
  2. Now change configuration to and restart the agent
metrics:
  receivers:
    jvm:
      type: jvm
      endpoint: localhost:1099
      collection_interval: 15s
      username: admin
      password: admin
  service:
    pipelines:
      jvm:
        receivers:
          - jvm
  1. This now collects JVM metrics.

Expected behavior
ActiveMQ application integration should be able to collect JVM metrics or collect_jvm_metrics parameter advertisement should be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions