Unable to gather metrics for http://localhost:8080/jolokia

Hi,

I have installed Datadog, Jolokia and Telegraf to monitor the corda nodes. In telegraf.conf, I have created the following entry

[[inputs.jolokia2_agent]]
 urls=["http://localhost:8080/jolokia"]

But when I run the command "systemctl status telegraf" it shows that it is active and running but also gives a message

Unable to gather metrics for http://localhost:8080/jolokia: Response from url "http://localhost:8080/jolokia" has status code 404

Can someone please advise as to what could be the problem. I am using this on an ubuntu machine

Thanks
Sachin

Hello @Sachin_Bal,
Can you please share your entire config, include debug=true in the agent portion of your telegraf config and share the output?
Thank you!

Hi @Anaisdg, Thanks for responding. But, I have investigated further, and it was a configuration mistake. I have corrected it and I can see the metrics.

1 Like

@Sachin_Bal,
Good to hear :slight_smile: