# Issue with activemq module in metricbeat

**URL:** <https://discuss.elastic.co/t/issue-with-activemq-module-in-metricbeat/300499>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [March 23, 2022, 7:56pm UTC](https://discuss.elastic.co/t/issue-with-activemq-module-in-metricbeat/300499 "2022-03-23T19:56:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![christopherjhachey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christopherjhachey/32/103421_2.png) [@christopherjhachey](https://discuss.elastic.co/u/christopherjhachey)\
**Post date:** [March 23, 2022, 7:56pm UTC](https://discuss.elastic.co/t/issue-with-activemq-module-in-metricbeat/300499/1 "2022-03-23T19:56:32Z")

</div>

Getting the following error trying to use activemq module in metricbeat framework.

```auto
Exiting: 3 errors: metricset 'activemq/broker' not found; metricset 'activemq/queue' not found; metricset 'activemq/topic' not found

```

I'm using macOS Big Sur, and metricbeat 8.1.0

my activemq.yml looks like the default:

# Module: activemq

# Docs: [ActiveMQ module | Beats](https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-activemq.html)

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

```

And my jolokia.yml looks like:

```auto
# Module: jolokia
# Docs: https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-jolokia.html

- module: jolokia
  #metricsets: ["jmx"]
  period: 10s
  hosts: ["localhost"]
  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
    # GC Metrics - this depends on what is available on your JVM
    #- 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:

```

I've been stuck on this for days now, any help would be sincerely appreciated 🙂

Best

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [March 24, 2022, 2:15pm UTC](https://discuss.elastic.co/t/issue-with-activemq-module-in-metricbeat/300499/2 "2022-03-24T14:15:25Z")

</div>

Please format the configuration content using `code tags`. Thanks!

---

<div class="post-metadata">

**Author:** ![christopherjhachey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christopherjhachey/32/103421_2.png) [@christopherjhachey](https://discuss.elastic.co/u/christopherjhachey)\
**Post date:** [March 24, 2022, 4:35pm UTC](https://discuss.elastic.co/t/issue-with-activemq-module-in-metricbeat/300499/3 "2022-03-24T16:35:00Z")

</div>

Done 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 21, 2022, 6:35pm UTC](https://discuss.elastic.co/t/issue-with-activemq-module-in-metricbeat/300499/4 "2022-04-21T18:35:03Z")

</div>

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