-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add support for GET method in Jolokia metricbeat module #8566
Comments
Hello! May I try to take up this issue? Some first thoughts/questions for discussion:
Thanks in advance. |
Hi @manios, thanks for offering your help on this issue! 🙂
Yes, we should add a new parameter,
Yes, I guess we will have to build this kind of urls.
Thanks for looking for the unavailable features! 😄
I'd throw an error as the configuration should be considered invalid, we could mention in the error message that this is supported using POST method.
I'd try to workaround this by making multiple GET requests. |
@manios I think I cannot assign this issue to you, but you can take it, feel free to open a PR when ready. |
@jsoriano Thanks for the clarifications! I will start it and make a PR when ready! Cheers! |
…c#9226) Add a new `http_method` parameter to Jolokia module which by default will have the value POST and can accept GET as well. Fixes elastic#8566. (cherry picked from commit 463ce3e)
(cherry picked from commit d434b47)
…yslog_host * elastic/master: Metricbeat can call Jolokia with GET requests. (elastic#8566) (elastic#9226) Add some missing references to PRs in changelog (elastic#9358)
…ts. (#8566) (#9375) Add a new `http_method` parameter to Jolokia module which by default will have the value POST and can accept GET as well. Fixes #8566. (cherry picked from commit 463ce3e) Add changelog for #8566 (cherry picked from commit d434b47) Co-authored-by: Christos Manios <[email protected]>
Current Jolokia module makes requests using POST method, but depending on the environment where Jolokia agent is deployed, POST method can be unavilable.
Jolokia also supports GET method, the module could have an option to select the method used.
Using GET method with Jolokia is a bit tricky, as parameters need to be carefully escaped and sent in the query parameters instead of using the request body. Also, according to documentation, not all Jolokia features are available when using the GET method, we'd have to check for these limitations when using this method.
The text was updated successfully, but these errors were encountered: