-
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
Check validity of beat module configuration when xpack.enabled
is set to true
#12645
Check validity of beat module configuration when xpack.enabled
is set to true
#12645
Conversation
Co-Authored-By: Nicolas Ruflin <spam@ruflin.com>
Co-Authored-By: Nicolas Ruflin <spam@ruflin.com>
Co-Authored-By: Nicolas Ruflin <spam@ruflin.com>
… to true When the `beat` metricbeat module is enabled and the `xpack.enabled` flag in the module configuration is set to `true`, an exact set of metricsets is required to be configured for Stack Monitoring to work correctly. This PR implements the necessary validation.
Pinging @elastic/stack-monitoring |
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. I assume it does not need a changelog as we didn't ship this yet.
metricbeat/module/beat/beat.go
Outdated
"github.com/pkg/errors" | ||
|
||
"github.com/elastic/beats/libbeat/common" | ||
|
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.
nit: newline
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
Similar to #12386 but for the
beat
module.When the
beat
metricbeat module is enabled and thexpack.enabled
flag in the module configuration is set totrue
, an exact set of metricsets is required to be configured for Stack Monitoring to work correctly. This PR implements the necessary validation.