Skip to content
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

Add option to load the dashboards via the Kibana API #4682

Merged
merged 3 commits into from
Jul 21, 2017

Conversation

monicasarbu
Copy link
Contributor

@monicasarbu monicasarbu commented Jul 17, 2017

Trying to solve #4712

This PR adds the option to the import_dashboards script to load the dashboards using the Kibana API. By default, the import_dashboards loads the dashboards to Elasticsearch. The same behavior has the -setup option.

This PR is a manual backport from master and it's customized for 5.6 branch. The motivation is that loading the dashboards in Beats 5.x to work with Elasticsearch 6.x version.

@monicasarbu monicasarbu added in progress Pull request is currently in progress. review v5.6.0 labels Jul 17, 2017
@monicasarbu monicasarbu force-pushed the load_dashboards_via_kibana branch 3 times, most recently from 1efd7a2 to c493a5a Compare July 19, 2017 17:05
@monicasarbu monicasarbu removed the in progress Pull request is currently in progress. label Jul 19, 2017
}

cfg := dashboards.DashboardsConfig{
/* prepare the Elasticsearch index pattern */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover?

}
indexSel := outil.MakeSelector(outil.FmtSelectorExpr(fmtstr, ""))
/* TLS config */
/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover?

@@ -1,4 +1,4 @@
:stack-version: 5.5.0
:doc-branch: 5.5
:stack-version: 5.6.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@monicasarbu did you run set-version for this?
@tsg Kind of concerned that we miss that somewhere else.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not set by set_version, but it's part of the release checklist to update it. I think it's fine to be changed here.

@tsg
Copy link
Contributor

tsg commented Jul 20, 2017

jenkins, package it

@monicasarbu monicasarbu force-pushed the load_dashboards_via_kibana branch 2 times, most recently from 9e66d5d to 725f4d6 Compare July 20, 2017 11:25
@monicasarbu monicasarbu force-pushed the load_dashboards_via_kibana branch from bff75d7 to d827cb1 Compare July 20, 2017 11:29
@tsg
Copy link
Contributor

tsg commented Jul 21, 2017

Tested manually with 6.0.0-beta1 and 5.4.1. Both seem to work fine. Nice work, @monicasarbu!

@tsg tsg merged commit 942b3c9 into elastic:5.x Jul 21, 2017
@monicasarbu monicasarbu deleted the load_dashboards_via_kibana branch July 21, 2017 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants