Skip to content

Commit c62bb56

Browse files
committed
Use LogsDB for profiling events to reduce storage footprint
1 parent 0485701 commit c62bb56

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

x-pack/plugin/core/template-resources/src/main/resources/profiling/component-template/profiling-events.json

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"template": {
33
"settings": {
4+
"mode": "logsdb",
45
"index": {
56
"number_of_shards": 4,
67
"auto_expand_replicas": "0-1",
@@ -13,13 +14,19 @@
1314
"orchestrator.resource.name",
1415
"host.name",
1516
"container.name",
16-
"process.thread.name"
17+
"process.thread.name",
18+
"@timestamp"
19+
],
20+
"order": [
21+
"asc",
22+
"asc",
23+
"asc",
24+
"asc",
25+
"asc",
26+
"asc",
27+
"asc",
28+
"desc"
1729
]
18-
},
19-
"mapping": {
20-
"source": {
21-
"mode": "synthetic"
22-
}
2330
}
2431
},
2532
"codec": "best_compression"

x-pack/plugin/profiling/src/main/java/org/elasticsearch/xpack/profiling/persistence/ProfilingIndexTemplateRegistry.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,12 @@ public class ProfilingIndexTemplateRegistry extends IndexTemplateRegistry {
5454
// version 11: Added 'profiling.agent.protocol' keyword mapping to profiling-hosts
5555
// version 12: Added 'profiling.agent.env_https_proxy' keyword mapping to profiling-hosts
5656
// version 13: Added 'container.id' keyword mapping to profiling-events
57-
public static final int INDEX_TEMPLATE_VERSION = 14;
57+
// version 14: Stop using using _source.mode attribute in index templates
58+
// version 15: Use LogsDB mode for profiling-events-* (~20% smaller storage footprint)
59+
public static final int INDEX_TEMPLATE_VERSION = 15;
5860

5961
// history for individual indices / index templates. Only bump these for breaking changes that require to create a new index
60-
public static final int PROFILING_EVENTS_VERSION = 5;
62+
public static final int PROFILING_EVENTS_VERSION = 6;
6163
public static final int PROFILING_EXECUTABLES_VERSION = 1;
6264
public static final int PROFILING_METRICS_VERSION = 2;
6365
public static final int PROFILING_HOSTS_VERSION = 2;

0 commit comments

Comments
 (0)