Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"template": {
"settings": {
"mode": "logsdb",
"index": {
"number_of_shards": 4,
"auto_expand_replicas": "0-1",
Expand All @@ -11,15 +12,22 @@
"profiling.project.id",
"k8s.namespace.name",
"orchestrator.resource.name",
"service.name",
"host.name",
"container.name",
"process.thread.name"
"process.thread.name",
"@timestamp"
],
"order": [
"asc",
"asc",
"asc",
"asc",
"asc",
"asc",
"asc",
"desc"
]
},
"mapping": {
"source": {
"mode": "synthetic"
}
}
},
"codec": "best_compression"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ public class ProfilingIndexTemplateRegistry extends IndexTemplateRegistry {
// version 11: Added 'profiling.agent.protocol' keyword mapping to profiling-hosts
// version 12: Added 'profiling.agent.env_https_proxy' keyword mapping to profiling-hosts
// version 13: Added 'container.id' keyword mapping to profiling-events
public static final int INDEX_TEMPLATE_VERSION = 14;
// version 14: Stop using using _source.mode attribute in index templates
// version 15: Use LogsDB mode for profiling-events-* (~30% smaller storage footprint)
public static final int INDEX_TEMPLATE_VERSION = 15;

// history for individual indices / index templates. Only bump these for breaking changes that require to create a new index
public static final int PROFILING_EVENTS_VERSION = 5;
public static final int PROFILING_EVENTS_VERSION = 6;
public static final int PROFILING_EXECUTABLES_VERSION = 1;
public static final int PROFILING_METRICS_VERSION = 2;
public static final int PROFILING_HOSTS_VERSION = 2;
Expand Down