-
Notifications
You must be signed in to change notification settings - Fork 524
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
Define component templates for APM #5707
Comments
Linking this ES feature request for awareness both ways: elastic/elasticsearch#75031 |
I started looking into this, but it's unclear to me what the expected outcome is. If you specify index_template like in the description, for traces-apm@mappings
traces-apm@settings
What am I missing? |
It should link the following 4 component templates at install time:
You don't see these added in the |
I did see the component templates, but they didn't contain the default mappings/settings.
I was missing the bug linked at the bottom of the description: elastic/kibana#105603 |
Moving this back to blocked for 7.16, until elastic/kibana#105603 is fixed. |
No longer blocked. |
Using the latest 8.0.0-SNAPSHOT Kibana image, here's how templates look now.
I then edited
After initiating a rollover, I confirm that these have been applied to the new index. @simitt the fields defined in the package are added to the index template, not to the |
Thanks for following up on that. Yes agreed, having the mappings in the index template makes sense. The important part is that users can add mappings and that they can modify settings. So LGTM. |
Great, I think we can call this done then. |
Fleet creates a custom component template by default for every datastream. Component templates can only overwrite settings and mappings that are not part of the
_index_template
's settings and mappings. Move all settings that should be changable by users into the component template definition in the apmpackage.For example in the manifest define
dynamic: false
(to avoid dynamic indexing for unmapped fields) and add some index settingWith the
custom
component, users can then define different settings and additional mappings.POC
elasticsearch.index_template
to thetraces
manifest./scripts/compose.py start master --with-elastic-agent --package-registry-url=http://host.docker.internal:8080
), set up the apm package and add it to the agent policytraces-apm@custom
component template and add some field mappingPOST traces-apm-default/_rollover
)GET .ds-traces-apm-default-2021.07.14-000003/_settings
)related Kibana bug elastic/kibana#105603
The text was updated successfully, but these errors were encountered: