-
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
Clean up Kibana, remove Elasticsearch loading and 5.x version #10451
Conversation
In 5.x the dashboards were loaded through Elasticsearch and not Kibana. For 6.x and 7.x dashboards are loaded through the Kibana API. The old code is removed in this PR. Also some code is cleaned up around talking to 5.x Kibana APIs.
The goal of this code is to make the implementation of #10450 easier / cleaner. |
CI failure in Journalbeat is related to not being able to push a docker image but not related to this PR. |
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.
LGTM, this may need an entry in the developers changelog.
func ImportDashboards( | ||
ctx context.Context, | ||
beatName, hostname, homePath string, | ||
kibanaConfig, esConfig, dashboardsConfig *common.Config, | ||
kibanaConfig, dashboardsConfig *common.Config, | ||
msgOutputter MessageOutputter, | ||
) error { |
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.
Does it need an entry in the developers changelog?
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, will add one in my follow up PR.
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.
In 5.x the dashboards were loaded through Elasticsearch and not Kibana. For 6.x and 7.x dashboards are loaded through the Kibana API. The old code is removed in this PR.
Also some code is cleaned up around talking to 5.x Kibana APIs.