Repository navigation
Conversation
Make the composable .monitoring-*-mb index templates extensible through custom component templates, so users can tweak settings without editing the managed templates. Each template (kibana, es, logstash, beats, ent-search) now composes two optional components: - .monitoring-mb@custom, shared by all of them - .monitoring-<name>-mb@custom, specific to the template The shared component is listed first so the per-template one takes precedence. Both are listed in ignore_missing_component_templates, so nothing changes for clusters that do not define them. The legacy (non -mb) templates are unchanged, since legacy templates do not support composed_of.
| "data_stream": {} | ||
| } | ||
| "data_stream": {}, | ||
| "composed_of": [ |
There was a problem hiding this comment.
Severity: P2 (Medium)
Bump STACK_MONITORING_REGISTRY_VERSION so existing clusters get these hooks. All five -mb templates still resolve to the previous version, and the registry only replaces a versioned template when the bundled version is higher. After an upgrade, creating either @custom component will have no effect on clusters that already have the templates installed.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
| } | ||
| "data_stream": {}, | ||
| "composed_of": [ | ||
| ".monitoring-mb@custom", |
There was a problem hiding this comment.
Severity: P3 (Low)
Add a monitoring-specific test that resolves the shipped templates with real custom components. The registry tests check that a PUT is sent with the expected version, but would still pass if these hooks were removed or reversed. Verify that a shared customization reaches all five templates, a product-specific customization wins for its product, and the templates still resolve without either component.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
| "composed_of": [ | ||
| ".monitoring-mb@custom", | ||
| ".monitoring-kibana-mb@custom" | ||
| ], |
There was a problem hiding this comment.
Severity: P3 (Low)
Document the exact @custom names in the Metricbeat Stack Monitoring guide and say to create them on the monitoring cluster. The hook names differ from the data stream names, and changing a component does not update existing backing indices; operators need both details to apply a customization and know when to expect it.
Generated by Libra. React with 👍 or 👎 to give feedback on this comment.
pickypg
left a comment
There was a problem hiding this comment.
LGTM with the notes added (and from the AI review).
| "composed_of": [ | ||
| ".monitoring-mb@custom", | ||
| ".monitoring-beats-mb@custom" | ||
| ], | ||
| "ignore_missing_component_templates": [ | ||
| ".monitoring-mb@custom", | ||
| ".monitoring-beats-mb@custom" | ||
| ] |
There was a problem hiding this comment.
I wonder if these should be moved to the top under the index_patterns?
Similarly, I wonder if we should bump the xpack.stack.monitoring.template.release.version (if we don't then this won't overwrite existing templates).
Make the composable .monitoring-*-mb index templates extensible through custom component templates, so users can tweak settings (and mapping) without editing the managed templates.
Each template (kibana, es, logstash, beats, ent-search) now composes two optional components:
The shared component is listed first so the per-template one takes precedence. Both are listed in
ignore_missing_component_templates, so nothing changes for clusters that do not define them.
The legacy (non -mb) templates are unchanged, since legacy templates do not support composed_of.