Hi Team,
Trying to setup metricbeat for ActiveMq, whole installation and configuration process went smooth, but couldn't see any data on Kibana.
On further diagnosis, found below information in /var/log/messages.
metricbeat: 2020-05-12T15:19:32.478+0530#011INFO#011module/wrapper.go:252#011Error fetching data for metricset activemq.broker: 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
ActiveMQ module requires the Jolokia agent installed in your ActiveMQ broker, is it installed in your case? You may also need to configure an username and password if the endpoint requires authentication.
Thank you for the reply.
I can see that jolokia-core-1.6.2.jar is already integrated inside the ActiveMQ and it's listening on port 8161.
Although, when I run curl manually on the port, it gave me the same error "Origin null is not allowed to call this agent", but if I pass a header in curl request as "Origin:localhost", it is providing a lot of information in json.
So, I tried passing the same header in activemq.yml, the error disappeared and I can see data in metricbeat index, though default dashboard is still not showing any data.
Hopefully I should be able to resolve that as well.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.