-
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
add note about overwriting dashboards #6828
Conversation
@@ -41,7 +41,9 @@ You can specify the following options in the `setup.dashboards` section of the | |||
|
|||
If this option is set to true, {beatname_uc} loads the sample Kibana dashboards | |||
automatically on startup. If no other options are set, the dashboard are loaded | |||
from the local `kibana` directory in the home path of the installation. | |||
from the local `kibana` directory in the home path of the installation. Note that |
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 seems fairly important, so you might want to call this out as a separate note. I wonder if it might make sense to have a setup.dashboards.overwrite
option like we have with the index template?
I'd suggest the following changes (includes a few edits to remove ambiguity in the existing text):
If this option is set to true, {beatname_uc} loads the sample Kibana dashboards
from the local `kibana` directory in the home path of the {beatname_uc} installation.
NOTE: When dashboard loading is enabled, {beatname_uc} overwrites any existing
dashboards that match the names of the dashboards you are loading. This happens
every time {beatname_uc} starts.
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.
beats/libbeat/dashboards/kibana_loader.go
Line 89 in 9e2838d
params.Set("force", "true") //overwrite the existing dashboards |
I opened a Discuss on this: https://discuss.elastic.co/t/should-beats-modules-overwrite-kibana-dashboards/127984
I like the new wording. I patched the PR.
@kvch Could you have a look at this if it is our expected behaviour? Could you also have a look at the overwrite config comment? This could be in line with the pipeline loading config? |
@@ -40,8 +40,11 @@ You can specify the following options in the `setup.dashboards` section of the | |||
==== `setup.dashboards.enabled` | |||
|
|||
If this option is set to true, {beatname_uc} loads the sample Kibana dashboards | |||
automatically on startup. If no other options are set, the dashboard are loaded |
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.
Why the sentence which start with "If no other options are set..." is removed? AFAIK it is still possible to override it using setup.dashboards.directory
.
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 I think this was my fault! When I suggested an edit to @loekvangool, I inadvertently deleted that line when I copy/pasted the original text. I didn't notice the line was missing because the sentence read correctly without the deleted line. My edit should have said:
If this option is set to true, {beatname_uc} loads the sample Kibana dashboards
automatically on startup. If no other options are set, the dashboard are loaded
from the local `kibana` directory in the home path of the {beatname_uc} installation.
Sorry about the confusion.
@ruflin Dashboards are indeed overwritten every time someone calls |
It happens when:
The first one is the tricky one for me. I myself was running with I reinstated the sentence, thanks for noticing! |
The other updating option is disabled by default, because I did not want to change the default behaviour as someone might be building on that. I would go with the current behaviour of dashboard loading now. In the future it would be nice to decide if loaded object are updated or not and introduce it to all objects regardless where/when it's loaded. |
jenkins test this please |
Build failures are unrelated to these changes, so I am merging. |
This needs to be backported to 6.3 and forward ported to master. |
* add note about overwriting dashboards * New wording * Reinstating removed sentence
* add note about overwriting dashboards * New wording * Reinstating removed sentence
* add note about overwriting dashboards * New wording * Reinstating removed sentence
* add note about overwriting dashboards * New wording * Reinstating removed sentence
* add note about overwriting dashboards * New wording * Reinstating removed sentence
No description provided.