Hi Team,
I've started metricbeat and enabled activemq and jolokia module.
I'm getting----
Error : 2021-11-15T16:19:36.032+0800 ERROR [reload] cfgfile/list.go:96 Error creating runner from config: 1 error: 3 errors: metricset 'activemq/broker' not found; metricset 'activemq/queue' not found; metricset 'activemq/topic' not found
Activqmq.yml file -->
- module: activemq
metricsets: ['broker', 'queue', 'topic']
period: 10s
hosts: ['localhost:8169']
path: '/api/jolokia/?ignoreErrors=true&canonicalNaming=false'
username: admin # default username
password: admin # default password
Module: jolokia
Docs: Jolokia module | Metricbeat Reference [7.3] | Elastic
-
module: jolokia
metricsets: ['broker', 'queue', 'topic']
period: 10s
hosts: ["localhost:8169"]
namespace: "metrics"
path: "/jolokia/?ignoreErrors=true&canonicalNaming=false"
username: "admin"
password: "admin"
jmx.mappings:- mbean: 'org.apache.activemq:brokerName=*,type=Broker'
attributes:- attr: Broker
field: Broker
- attr: Broker
- mbean: 'java.lang:type=Runtime'
attributes:- attr: Uptime
field: uptime
#- mbean: 'java.lang:type=Memory'
- attr: Uptime
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: - mbean: 'org.apache.activemq:brokerName=*,type=Broker'
Kindly help me to resolve this issue.
Thanks!!