-
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
Support dashboard loading without Elasticsearch #5653
Support dashboard loading without Elasticsearch #5653
Conversation
@kvch Can you share some more details on why we need this? Instead of requiring a |
@ruflin The current algorithm is something like this:
What this PR changes is a way to skip the ES version check for when the Beat has access to the Kibana API but not the ES API. @kvch We generally prefer configuration file options more than CLI flags (because any config can be set from the CLI anyway), so maybe a configuration option in the |
d1a83d2
to
8664fa3
Compare
I added a new config option called |
8664fa3
to
85514d3
Compare
The new config option is under
|
@kvch LGTM. Can you also add documentation for the new option and a CHANGELOG entry, please? |
libbeat/_meta/config.reference.yml
Outdated
@@ -628,6 +628,9 @@ output.elasticsearch: | |||
# dashboards and index pattern. Example: testbeat-* | |||
#setup.dashboards.index: | |||
|
|||
# Force loading of dashboards using Kibana instead of Elasticsearch |
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.
Suggestion: "Force loading of dashboards using the Kibana API without querying Elasticsearch for the version"
85514d3
to
778d96b
Compare
A new boolean option for dashboards is introduced named alwas_kibana. If it is true, Elasticsearch version check is skipped and dashboards are loaded using Kibana API. It should be used when no Elasticsearch output is configured.
778d96b
to
c588860
Compare
I added the entry and changed the documentation. |
CHANGELOG.asciidoc
Outdated
@@ -14,6 +14,9 @@ https://github.com/elastic/beats/compare/v6.0.0-beta2...master[Check the HEAD di | |||
|
|||
*Affecting all Beats* | |||
|
|||
- Determine log level for kafka output. {pull}5397[5397] |
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.
This is probably a rebase artifact. Can you remove the line, please?
Please also add the config option to |
73c7e16
to
a134b80
Compare
@@ -722,6 +722,9 @@ output.elasticsearch: | |||
# dashboards and index pattern. Example: testbeat-* | |||
#setup.dashboards.index: | |||
|
|||
# Force loading of dashboards using the Kibana API without querying Elasticsearch for the version | |||
#always_kibana: false |
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.
@kvch Should this be prefixed by setup.dashboards.
?
Make it possible to import dashboards without Elasticsearch using Kibana API.
Usage
The flag
force-kibana
can be specified only when dashboards are loaded.The name of the flag is not the best. I am open to proposals.
Based on a discussion over IRC.