-
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
Allow specifying Kibana URL for mage ExportDashboard #10145
Conversation
dev-tools/mage/dashboard.go
Outdated
@@ -36,6 +36,8 @@ func ExportDashboard() error { | |||
return fmt.Errorf("Dashboad ID must be specified") | |||
} | |||
|
|||
kibanaURL := EnvOr("KIBANA", "") |
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.
Should we call this KIBANA_BASE_PATH
because to remove it in the kibana build you need to run --no-base-path
flag.
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 prefer KIBANA_URL. That's what I used in the import target in the PR.
https://github.com/elastic/beats/pull/9842/files#diff-81a661bb38d6e9e450c732a07bdb4ac0R63
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'm fine with either.
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.
me too, KIBANA_URL then? :-)
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.
Sounds good :)
I've changed to |
jenkins, test this |
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. Didn't test it locally.
When running Kibana from source (maybe also in other cases) Kibana will run under a URL like
http://localhost:5603/kva
(note thekva
at the end).This changes the
mage ExportDashboard
command to take into account aKIBANA_URL
environment variable that allows specifying a custom Kibana URL like that to allow exporting dashboards.Also improves a log message.