Check Kibana version for stats API availability#7697
Merged
ruflin merged 6 commits intoelastic:masterfrom Jul 24, 2018
ycombinator:metricbeat/kibana/stats/check-version
Merged
Check Kibana version for stats API availability#7697ruflin merged 6 commits intoelastic:masterfrom ycombinator:metricbeat/kibana/stats/check-version
ruflin merged 6 commits intoelastic:masterfrom
ycombinator:metricbeat/kibana/stats/check-version
Conversation
ruflin
reviewed
Jul 24, 2018
metricbeat/module/kibana/kibana.go
Outdated
Contributor
There was a problem hiding this comment.
We should check the error here.
metricbeat/module/kibana/kibana.go
Outdated
Contributor
There was a problem hiding this comment.
Should we check the error here?
Contributor
There was a problem hiding this comment.
We have an internal version package which could be used here.
Contributor
Author
|
@ruflin Addressed review feedback and squashed to single commit. |
ruflin
reviewed
Jul 24, 2018
metricbeat/module/kibana/kibana.go
Outdated
Contributor
There was a problem hiding this comment.
What if version.number does not contain a string?
Metricbeat will now exit with a helpful error message if the user is running against a version of Kibana that doesn't yet have the stats API implemented in it.
Contributor
|
@ycombinator Can you create a follow up PR that cleans up the FIXME part? |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Metricbeat will now exit with a helpful error message if the user is running against a version of Kibana that doesn't yet have the stats API implemented in it.
To test this PR
Run Elasticsearch 6.3.0.
Run Kibana 6.3.0.
Using this PR, enable the kibana module in metricbeat.
Modify
modules.d/kibana.ymland enable thestatsmetricset.Run metricbeat.
Verify that metricbeat exits with a helpful error message about the Kibana stats API not being available.