-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jolokia plugin: POST requests need configuration documentation #1834
Comments
could you try setting |
Also the telegraf plugin sends a POST request to jolokia, so try
or you may need to send the read request as data in the POST:
|
I'm getting following error while posting:
Is this jolokia configuration issue? Do you have any latest example that I can use to configure jolokia or to get Jvm stats? |
your Jolokia instance needs to support POST requests. I'm not very familiar with Jolokia configuration but the best I can do is point you towards this: https://jolokia.org/reference/html/protocol.html#request-response I'm going to change this to a documentation issue because this has been a source of confusion for other users as well. |
The Jolokia plugin documentation needs to be updated to inform users that their Jolokia endpoint must support POST requests. This should be both in the sample configuration and in the README. The README should also give a few @saiello Since you made this change to use POST requests, and know more about Jolokia configuration than I do, I'd appreciate it a lot if you could update the documentation. |
@sparrc using POST requests allow to switch to 'proxy' mode in a easier way ( code is the same). Maybe along with the documentation improvement it would be better(nicer) specify whether to work in GET or POST. I'll check |
@saiello I would prefer if we did POST requests only. The problem is just that we don't have it documented so it can be quite confusing to new users. |
I'm not really sure what the issue is here so I'm going to close this. If someone wants to submit a PR to improve the documentation they're welcome to do it. |
Bug report
Relevant telegraf.conf:
System info:
Red Hat Enterprise Linux Server release 6.8 (Santiago)
Telegraf - version 1.0.0
Jolokia - version 1.3.4
Steps to reproduce:
Expected behavior:
As per doc, I should see 200 response from the telegraf while calling jolokia endpoint.
Actual behavior:
Error handling response: Response from url "" has status code 404 (Not Found), expected 200 (OK)
Appreciate if you could help us to address this issue.
The text was updated successfully, but these errors were encountered: