ActiveMQ has 2 version: AciveMQ and (Apache or Redhat ActiveMQ)
The configuration below is for Apache ActiveMQ
[[inputs.jolokia2_agent]]
urls = [ "http://localhost:8161/console/jolokia/" ]
name_prefix = "activemq."
username = "artemis"
password = "artemis"
[[inputs.jolokia2_agent.metric]]
name = "OperatingSystem"
mbean = "java.lang:type=OperatingSystem"
paths = ["ProcessCpuLoad","SystemLoadAverage","SystemCpuLoad"]
[[inputs.jolokia2_agent.metric]]
name = "jvm_runtime"
mbean = "java.lang:type=Runtime"
paths = ["Uptime"]
[[inputs.jolokia2_agent.metric]]
name = "jvm_memory"
mbean = "java.lang:type=Memory"
paths = ["HeapMemoryUsage", "NonHeapMemoryUsage", "ObjectPendingFinalizationCount"]
[[inputs.jolokia2_agent.metric]]
name = "jvm_garbage_collector"
mbean = "java.lang:name=*,type=GarbageCollector"
paths = ["CollectionTime", "CollectionCount"]
tag_keys = ["name"]
[[inputs.jolokia2_agent.metric]]
name = "jvm_memory_pool"
mbean = "java.lang:name=*,type=MemoryPool"
paths = ["Usage", "PeakUsage", "CollectionUsage"]
tag_keys = ["name"]
tag_prefix = "pool_"
[[inputs.jolokia2_agent.metric]]
name = "address"
mbean = "org.apache.activemq.artemis:broker=\"*\",component=addresses,address=\"*\""
paths = [ "NumberOfMessages","NumberOfBytesPerPage","UnRoutedMessageCount","RoutedMessageCount","MessageCount","AddressSize"]
tag_keys = [ "address","name" ]
[[inputs.jolokia2_agent.metric]]
name = "queue"
mbean = "org.apache.activemq.artemis:broker=\"*\",component=addresses,address=\"*\",subcomponent=queues,routing-type=\"*\",queue=\"*\""
paths = [ "MessagesExpired","MessagesAcknowledged","Paused","MessagesAdded","MessageCount","ConsumerCount"]
tag_keys = [ "address","queue" ]
[[inputs.jolokia2_agent.metric]]
name = "broker"
mbean = "org.apache.activemq.artemis:broker=*"
paths = [ "AddressMemoryUsagePercentage","DiskStoreUsage","TotalMessagesAdded","TotalMessagesAcknowledged","QueueCount","ConnectionCount","TotalConsumerCount"]
tag_keys = [ "name","queue" ]