kpanguila
(kpanguila)
November 30, 2021, 10:02am
1
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
ChrsMark
(Chris Mark)
December 2, 2021, 8:23am
2
Hi @kpanguila ! Could you share your complete configuration?
cc: @mtojek
kpanguila
(kpanguila)
December 2, 2021, 8:43am
3
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:
mtojek
(Marcin Tojek)
December 2, 2021, 8:52am
4
Hi,
could you please share also the ActiveMQ version you're using?
1 Like
kpanguila
(kpanguila)
December 2, 2021, 9:07am
5
hi @mtojek
I am using Activemq 5.15.13 version
mtojek
(Marcin Tojek)
December 2, 2021, 9:56am
6
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.
kpanguila
(kpanguila)
December 2, 2021, 10:16am
7
Thank you, i guess my problem is related to the jolokia agent installed on activemq, how can i make it? any idea please.
system
(system)
Closed
December 30, 2021, 12:17pm
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.