-
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
Adding version check to Logstash metricsets when xpack.enabled: true is set #12705
Adding version check to Logstash metricsets when xpack.enabled: true is set #12705
Conversation
Pinging @elastic/stack-monitoring |
Using these instructions I can't seem to make this work. The first problem is that there is no
I receive the following, no matter whether I set the host to
|
Update: @ruflin pointed out that the config file is just checked into master. I'm grabbing it and testing again. |
Using the supplied file in master which is shown below, I get the same protocol error as above:
|
Disabling the |
Commenting out |
Additionally, I can query the Logstash endpoint (running on 7.2 per test instructions) by hand without problems:
|
Since you don't mention what the intended error should be, I can't conclude whether this is the expected behavior or not. Once you can confirm, I can come back and re-review. Thanks! |
d8d98a3
to
6a9324a
Compare
@cachedout I can confirm the following error locally:
Good news is that it's only happening in this PR, not in |
@cachedout The issue is fixed in 1409c55. Please re-review this PR when you get a chance. Thanks! |
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.
I have tested this and I receive the error as expected. Good to go!
jenkins, test this |
When the
logstash
module is used withxpack.enabled: true
set, Logstash APIs called by the module's metricsets are expected to return Logstash pipeline graphs. Returning pipeline graphs is an enhancement to Logstash APIs that was implemented in 7.3.0 of Logstash. So using thelogstash
module withxpack.enabled: true
set won't work against Logstash nodes < 7.3.0.This PR adds a version check to the Logstash module code and emits an error message in the Metricbeat logs if the version check fails. This is similar to a version check in the Kibana module.
Testing this PR
Start up a Logstash node (running version < 7.3.0) running one or more pipelines.
Build Metricbeat with this PR:
Enable the
logstash
Metricbeat module for Stack Monitoring:Start Metricbeat:
Check that an error is shown in the Metricbeat logs about the Logstash module not working with Logstash < 7.3.0 when
xpack.enabled: true
is set.