-
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
Improve Jolokia docs and remove proxy restriction #7969
Conversation
Sorry, this isn't ready for review after all. I just noticed another old issue related these docs. I'll keep this PR open and add those changes: #4344 |
https://jolokia.org/reference/html/agents.html[Jolokia agents] running on a | ||
target JMX server or dedicated proxy server. The default metricset is `jmx`. | ||
|
||
To collect metrics, {beatname_uc} communicates with a Jolokia HTTP/REST |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took some of this language from #4344, but I found some of the language used there to be a bit redundant.
@@ -1,58 +1,67 @@ | |||
This is the `jmx` metricset of the Jolokia module. | |||
The `jmx` metricset collects metrics from | |||
https://jolokia.org/reference/html/agents.html[Jolokia agents]. | |||
|
|||
[float] | |||
=== Features and configuration | |||
Tested with Jolokia 1.3.4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So should this say 1.5.0 because it seems to contradict the earlier statement about the module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this should be 1.5.0 too.
Expert around jolokia is @jsoriano so I requested his review on this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dedemorton for the changes here, it is looking quite good 🙂, just some comments about the use of namespace
.
@@ -1,58 +1,67 @@ | |||
This is the `jmx` metricset of the Jolokia module. | |||
The `jmx` metricset collects metrics from | |||
https://jolokia.org/reference/html/agents.html[Jolokia agents]. | |||
|
|||
[float] | |||
=== Features and configuration | |||
Tested with Jolokia 1.3.4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this should be 1.5.0 too.
--- | ||
---- | ||
<1> The `namespace` setting is required. | ||
<2> This field will be called `jolokia.jmx.uptime` in the output event because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, after configuring the namespace as metrics
, the field will be called jolokia.metrics.uptime
. Probably the namespace was added to have events with the monitored service in the name (e.g. if monitoring tomcat with jolokia having the metrics under jolokia.tomcat
). Maybe it worths to add a line about the use of namespace.
|
||
[float] | ||
=== Limitations | ||
No authentication against Jolokia is supported yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The truth is that I haven't tested that, but indeed it should work as it uses the same http helper as other modules.
I agree with backporting it to 6.4 and 6.x branches, I don't think it is needed in 6.3, if it is backported there take into account that proxy is supported since 6.4. |
@jsoriano This is ready for you to review now. Tweaked the wording a bit and changed the namespace to match the one used in the event example at the end of the topic. (You don't see the example in the review here because the example lives in a different file.) |
* Improve Jolokia docs and remove proxy restriction (elastic#7969) * Update links to point to new GS location (elastic#8172) * Run make update
Summary of changes:
Closes #6897 and #4344.
NOTE: I plan to backport this change to 6.4 only (unless there is a strong objection and reviewers think this must be in 6.3)