You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support different downsampling methods through ILM (elastic#136951)
Following elastic#136813, we expose to ILM the new sampling method config in the downsampling API. This will allow users to configure the sampling method in their downsample action of their ILM policies. For example:
```
PUT _ilm/policy/datastream_policy
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover": {
"max_docs": 1
},
"downsample": {
"fixed_interval": "1h",
"force_merge_index": false,
"sampling_method": "aggregate"
}
}
}
}
}
}
```
Copy file name to clipboardExpand all lines: docs/reference/elasticsearch/index-lifecycle-actions/ilm-downsample.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,13 @@ To use the `downsample` action in the `hot` phase, the `rollover` action **must*
19
19
20
20
`fixed_interval`
21
21
: (Required, string) The [fixed time interval](docs-content://manage-data/lifecycle/rollup/understanding-groups.md#rollup-understanding-group-intervals) into which the data will be downsampled.
22
+
22
23
`force_merge_index` {applies_to}`stack: ga 9.3`
23
24
: (Optional, boolean) When true, the downsampled index will be [force merged](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-forcemerge) to one [segment](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-segments). Defaults to `true`.
24
25
26
+
`sampling_method` {applies_to}`stack: ga 9.3`
27
+
: (Optional, string) The sampling method that will be used to sample metrics; there are two methods available `aggregate` and
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/internalClusterTest/java/org/elasticsearch/xpack/core/action/TimeSeriesUsageTransportActionIT.java
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/action/TimeSeriesUsageTransportActionTests.java
0 commit comments