Activemq module configuration

Hello,
i hope you are doing great, i am facing an issues on configure my activemq module. i am getting the following error on discover:

failed to unmarshal jolokia JSON response '{"error_type":"java.lang.Exception","error":"java.lang.Exception : Origin null is not allowed to call this agent","status":403}': json: cannot unmarshal object into Go value of type jmx.Entry

Hi @kpanguila ! Could you share your complete configuration?

cc: @mtojek

hi @ChrsMark thanks for your response.

======activemq.yml======

  • module: activemq
    metricsets: ['broker', 'queue', 'topic']
    period: 10s
    hosts: ['ip:8161']
    path: '/api/jolokia/?ignoreErrors=true&canonicalNaming=false'
    username: admin # default username
    password: admin # default password

======Jolokia.yml======

  • module: jolokia
    metricsets: ["jmx"]
    period: 10s
    hosts: ["myIP_host"]
    namespace: "metrics"
    #path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"
    #username: "user"
    #password: "secret"
    jmx.mappings:

    • mbean: 'java.lang:type=Runtime'
      attributes:

      • attr: Uptime
        field: uptime
    • mbean: 'java.lang:type=Memory'
      attributes:

      • attr: HeapMemoryUsage
        field: memory.heap_usage
      • attr: NonHeapMemoryUsage
        field: memory.non_heap_usage
    • mbean: 'java.lang:type=GarbageCollector,name=ConcurrentMarkSweep'
      attributes:

      • attr: CollectionTime
        field: gc.cms_collection_time
      • attr: CollectionCount
        field: gc.cms_collection_count

    jmx.application:
    jmx.instance:

Hi,

could you please share also the ActiveMQ version you're using?

1 Like

hi @mtojek

I am using Activemq 5.15.13 version

The module has been tested with ActiveMQ 5.13.0 and 5.15.9. Other versions are expected to work.

source

We have to test it against the newer version. It isn't officially included in our support matrix.

Thank you, i guess my problem is related to the jolokia agent installed on activemq, how can i make it? any idea please.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.