-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Automatically install monitoring templates at plugin initialization #78350
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
Automatically install monitoring templates at plugin initialization #78350
Conversation
This allows it to better replace the MonitoringTemplateUtils class.
…sing. Update template name uses away from MonitoringTemplateUtils.
Only install templates if there is a template source given (for now)
Only target .monitoring indices when asserting index count, since readying the local exporter will create a watcher index that trips up the test.
No longer assumes that templates will be installed by the exporter.
No longer assumes that templates will be installed by the exporter. Added some additional trace logging lines to aid in debugging these tests.
|
Pinging @elastic/es-data-management (Team:Data Management) |
danhermann
left a comment
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
|
@elasticmachine update branch |
|
Changing to the deprecation label since we have re-added the removed setting in 8.0 to allow for a longer deprecation cycle. The setting will not break 8.0 nodes on start up, but it will not have any functionality tied to it. |
This PR adds a
MonitoringIndexTemplateRegistryto the monitoring plugin which automatically installs all monitoring templates locally when the plugin is initialized. Exporters have been updated to no longer attempt installation of the monitoring templates, and instead will wait for the templates to become available before setting themselves as started. Some older functionality related to templates has been removed as well, such as the expectation that version 6 monitoring templates are installed, as well as the setting that controls their installation (xpack.monitoring.exporters.<EXPORTER>.index.template.create_legacy_templates).