Skip to content

Commit

Permalink
Add default ILM policies and switch to ILM for apm-data plugin (elast…
Browse files Browse the repository at this point in the history
…ic#115687)

(cherry picked from commit 6325e46)
  • Loading branch information
lahsivjar committed Nov 13, 2024
1 parent d6b2425 commit 2437520
Show file tree
Hide file tree
Showing 44 changed files with 468 additions and 36 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/115687.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 115687
summary: Add default ILM policies and switch to ILM for apm-data plugin
area: Data streams
type: feature
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,26 @@ protected Set<String> preserveILMPolicyIds() {
".fleet-file-tohost-meta-ilm-policy",
".deprecation-indexing-ilm-policy",
".monitoring-8-ilm-policy",
"behavioral_analytics-events-default_policy"
"behavioral_analytics-events-default_policy",
"logs-apm.app_logs-default_policy",
"logs-apm.error_logs-default_policy",
"metrics-apm.app_metrics-default_policy",
"metrics-apm.internal_metrics-default_policy",
"metrics-apm.service_destination_10m_metrics-default_policy",
"metrics-apm.service_destination_1m_metrics-default_policy",
"metrics-apm.service_destination_60m_metrics-default_policy",
"metrics-apm.service_summary_10m_metrics-default_policy",
"metrics-apm.service_summary_1m_metrics-default_policy",
"metrics-apm.service_summary_60m_metrics-default_policy",
"metrics-apm.service_transaction_10m_metrics-default_policy",
"metrics-apm.service_transaction_1m_metrics-default_policy",
"metrics-apm.service_transaction_60m_metrics-default_policy",
"metrics-apm.transaction_10m_metrics-default_policy",
"metrics-apm.transaction_1m_metrics-default_policy",
"metrics-apm.transaction_60m_metrics-default_policy",
"traces-apm.rum_traces-default_policy",
"traces-apm.sampled_traces-default_policy",
"traces-apm.traces-default_policy"
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: logs-apm.app_logs-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: logs-apm.error_logs-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.app_metrics-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.internal_metrics-default_policy
prefer_ilm: false
1 change: 0 additions & 1 deletion .../main/resources/component-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.service_destination_10m_metrics-default_policy
prefer_ilm: false
1 change: 0 additions & 1 deletion ...c/main/resources/component-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.service_destination_1m_metrics-default_policy
prefer_ilm: false
1 change: 0 additions & 1 deletion .../main/resources/component-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.service_destination_60m_metrics-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.service_summary_10m_metrics-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.service_summary_1m_metrics-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.service_summary_60m_metrics-default_policy
prefer_ilm: false
1 change: 0 additions & 1 deletion .../main/resources/component-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.service_transaction_10m_metrics-default_policy
prefer_ilm: false
1 change: 0 additions & 1 deletion ...c/main/resources/component-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.service_transaction_1m_metrics-default_policy
prefer_ilm: false
1 change: 0 additions & 1 deletion .../main/resources/component-templates/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.service_transaction_60m_metrics-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.transaction_10m_metrics-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.transaction_1m_metrics-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: metrics-apm.transaction_60m_metrics-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: traces-apm.traces-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: traces-apm.rum_traces-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ template:
index:
lifecycle:
name: traces-apm.sampled_traces-default_policy
prefer_ilm: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 10d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 10d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 90d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 90d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 14d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 180d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 7d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 90d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 390d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 14d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 180d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 7d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 90d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 390d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 14d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 180d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 7d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 90d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 30d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 390d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 14d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 180d
actions:
delete: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
_meta:
description: Default ILM policy for APM managed datastreams
managed: true
phases:
hot:
actions:
rollover:
max_age: 7d
max_primary_shard_size: 50gb
set_priority:
priority: 100
delete:
min_age: 90d
actions:
delete: {}
Loading

0 comments on commit 2437520

Please sign in to comment.