Skip to content

Commit

Permalink
[plugin/apm-data] Set fallback to legacy ILM policies (elastic#112028)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahsivjar authored and cbuescher committed Sep 4, 2024
1 parent 310e054 commit 95d3342
Show file tree
Hide file tree
Showing 20 changed files with 60 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@ template:
index:
default_pipeline: logs-apm.app@default-pipeline
final_pipeline: apm@pipeline
lifecycle:
name: logs-apm.app_logs-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ template:
index:
default_pipeline: logs-apm.error@default-pipeline
final_pipeline: apm@pipeline
lifecycle:
name: logs-apm.error_logs-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ template:
index:
default_pipeline: metrics-apm.app@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.app_metrics-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ template:
index:
default_pipeline: metrics-apm.internal@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.internal_metrics-default_policy
prefer_ilm: false
mappings:
properties:
data_stream.dataset:
Expand Down
3 changes: 3 additions & 0 deletions ...data/src/main/resources/index-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ template:
index:
default_pipeline: metrics-apm.service_destination@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.service_destination_10m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ template:
index:
default_pipeline: metrics-apm.service_destination@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.service_destination_1m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
3 changes: 3 additions & 0 deletions ...data/src/main/resources/index-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ template:
index:
default_pipeline: metrics-apm.service_destination@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.service_destination_60m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ template:
index:
default_pipeline: metrics-apm.service_summary@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.service_summary_10m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ template:
index:
default_pipeline: metrics-apm.service_summary@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.service_summary_1m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ template:
index:
default_pipeline: metrics-apm.service_summary@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.service_summary_60m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
3 changes: 3 additions & 0 deletions ...data/src/main/resources/index-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ template:
index:
default_pipeline: metrics-apm.service_transaction@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.service_transaction_10m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ template:
index:
default_pipeline: metrics-apm.service_transaction@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.service_transaction_1m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
3 changes: 3 additions & 0 deletions ...data/src/main/resources/index-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ template:
index:
default_pipeline: metrics-apm.service_transaction@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.service_transaction_60m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ template:
index:
default_pipeline: metrics-apm.transaction@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.transaction_10m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ template:
index:
default_pipeline: metrics-apm.transaction@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.transaction_1m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ template:
index:
default_pipeline: metrics-apm.transaction@default-pipeline
final_pipeline: metrics-apm@pipeline
lifecycle:
name: metrics-apm.transaction_60m_metrics-default_policy
prefer_ilm: false
mappings:
properties:
metricset.interval:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ template:
index:
default_pipeline: traces-apm.rum@default-pipeline
final_pipeline: traces-apm@pipeline
lifecycle:
name: traces-apm.rum_traces-default_policy
prefer_ilm: false
mappings:
properties:
data_stream.type:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ ignore_missing_component_templates:
template:
lifecycle:
data_retention: 1h
settings:
index:
lifecycle:
name: traces-apm.sampled_traces-default_policy
prefer_ilm: false
mappings:
properties:
data_stream.type:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ template:
index:
default_pipeline: traces-apm@default-pipeline
final_pipeline: traces-apm@pipeline
lifecycle:
name: traces-apm.traces-default_policy
prefer_ilm: false
mappings:
properties:
data_stream.type:
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugin/apm-data/src/main/resources/resources.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# "version" holds the version of the templates and ingest pipelines installed
# by xpack-plugin apm-data. This must be increased whenever an existing template or
# pipeline is changed, in order for it to be updated on Elasticsearch upgrade.
version: 6
version: 7

component-templates:
# Data lifecycle.
Expand Down

0 comments on commit 95d3342

Please sign in to comment.