-
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
Do not load dashboards where not available #15802
Conversation
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.
Looks good to me.
This is a good improvement because from the command output I would expect that functionbeat was supposed to have a dashboard but it was just missing in the released files. From this change I can tell that actually it doesn't have a dashboard at all so those messages should not be shown in the case of functionbeat (also in the case for some others).
@@ -31,7 +31,7 @@ import ( | |||
var Version = "9.9.9" | |||
var Name = "mockbeat" | |||
|
|||
var Settings = instance.Settings{Name: Name, Version: Version} | |||
var Settings = instance.Settings{Name: Name, Version: Version, HasDashboards: true} |
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.
exported var Settings should have comment or be unexported
@@ -31,7 +31,7 @@ import ( | |||
var Version = "9.9.9" | |||
var Name = "mockbeat" | |||
|
|||
var Settings = instance.Settings{Name: Name, Version: Version} | |||
var Settings = instance.Settings{Name: Name, Version: Version, HasDashboards: true} |
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.
exported var Settings should have comment or be unexported
07a2998
to
5f5ea30
Compare
## What does this PR do? This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running `setup` does not attempt to load those. ## Why is it important? Running the command `setup` fails if the Beat does not have dashboards in the appropriate folder. ## Checklist <!-- Mandatory Add a checklist of things that are required to be reviewed in order to have the PR approved List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~) --> - [x] My code follows the style guidelines of this project - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] I have made the corresponding change to the default configuration files - [x] I have added tests that prove my fix is effective or that my feature works ## How to test this PR locally Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested. ```sh ./functionbeat setup ``` ## Related issues Closes elastic#13276 Closes elastic#11751 (cherry picked from commit 8260623)
## What does this PR do? This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running `setup` does not attempt to load those. ## Why is it important? Running the command `setup` fails if the Beat does not have dashboards in the appropriate folder. ## Checklist <!-- Mandatory Add a checklist of things that are required to be reviewed in order to have the PR approved List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~) --> - [x] My code follows the style guidelines of this project - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] I have made the corresponding change to the default configuration files - [x] I have added tests that prove my fix is effective or that my feature works ## How to test this PR locally Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested. ```sh ./functionbeat setup ``` ## Related issues Closes #13276 Closes #11751 (cherry picked from commit 8260623)
## What does this PR do? This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running `setup` does not attempt to load those. ## Why is it important? Running the command `setup` fails if the Beat does not have dashboards in the appropriate folder. ## Checklist <!-- Mandatory Add a checklist of things that are required to be reviewed in order to have the PR approved List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~) --> - [x] My code follows the style guidelines of this project - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] I have made the corresponding change to the default configuration files - [x] I have added tests that prove my fix is effective or that my feature works ## How to test this PR locally Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested. ```sh ./functionbeat setup ``` ## Related issues Closes elastic#13276 Closes elastic#11751 (cherry picked from commit 8260623)
…#15851) * Do not load dashboards where not available (#15802) ## What does this PR do? This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running `setup` does not attempt to load those. ## Why is it important? Running the command `setup` fails if the Beat does not have dashboards in the appropriate folder. ## Checklist <!-- Mandatory Add a checklist of things that are required to be reviewed in order to have the PR approved List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~) --> - [x] My code follows the style guidelines of this project - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have made corresponding changes to the documentation - [x] I have made the corresponding change to the default configuration files - [x] I have added tests that prove my fix is effective or that my feature works ## How to test this PR locally Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested. ```sh ./functionbeat setup ``` ## Related issues Closes #13276 Closes #11751 (cherry picked from commit 8260623) * fix changelog again
What does this PR do?
This PR adds a new setting to Beat to indicate if it has a dashboard or not. If the Beat lacks dashboards, running
setup
does not attempt to load those.Why is it important?
Running the command
setup
fails if the Beat does not have dashboards in the appropriate folder.Checklist
How to test this PR locally
Both Journalbeat and Functionbeat are affected. So both Beats can/should be tested.
Related issues
Closes #13276
Closes #11751