diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-events.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-events.json index 8a6475e37a648..84d2fb857f1bd 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-events.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-events.json @@ -24,6 +24,7 @@ "_source": { "enabled": false }, + "dynamic": false, "properties": { "ecs.version": { "type": "keyword", diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-executables.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-executables.json index ad55d30125196..598c7bcad64e1 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-executables.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-executables.json @@ -13,6 +13,7 @@ "_source": { "mode": "synthetic" }, + "dynamic": false, "properties": { "ecs.version": { "type": "keyword", diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-hosts.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-hosts.json index e98a84f2c0bb2..0a2911bfba3dc 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-hosts.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-hosts.json @@ -19,6 +19,7 @@ "_source": { "enabled": true }, + "dynamic": false, "properties": { "ecs.version": { "type": "keyword" @@ -31,7 +32,6 @@ "format": "epoch_second" }, "profiling": { - "dynamic": false, "properties": { "project.id": { "type": "keyword" @@ -160,7 +160,6 @@ } }, "ec2": { - "dynamic": false, "properties": { "ami_id": { "type": "keyword" @@ -224,7 +223,6 @@ } }, "azure": { - "dynamic": false, "properties": { "compute.sku": { "type": "keyword" @@ -268,7 +266,6 @@ } }, "gce": { - "dynamic": false, "properties": { "instance.id": { "type": "keyword" diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-metrics.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-metrics.json index 231591740b219..c5b6d4a9c5354 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-metrics.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-metrics.json @@ -19,6 +19,12 @@ "_source": { "enabled": false }, + /* + We intentionally allow dynamic mappings for metrics. Which metrics are added is guarded by + the collector and we want to allow adding new metrics over time. As this is a datastream, + which will age and eventually be deleted, schema evolution is not a major concern here. + */ + "dynamic": true, "properties": { "ecs.version": { "type": "keyword", diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-stackframes.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-stackframes.json index f2ffdc39c4885..c18f804e68231 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-stackframes.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-stackframes.json @@ -21,6 +21,7 @@ "_source": { "enabled": true }, + "dynamic": false, "properties": { "ecs.version": { "type": "keyword", diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-stacktraces.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-stacktraces.json index 5b80964b86137..d7bc39cc256dd 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-stacktraces.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-stacktraces.json @@ -19,6 +19,7 @@ "_source": { "mode": "synthetic" }, + "dynamic": false, "properties": { "ecs.version": { "type": "keyword", diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-symbols.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-symbols.json index 8951e30d94ecb..2ef27c111bcf6 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-symbols.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/component-template/profiling-symbols.json @@ -17,6 +17,7 @@ "_source": { "enabled": true }, + "dynamic": false, "properties": { "ecs.version": { "type": "keyword", diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-returnpads-private.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-returnpads-private.json index dc2508e2853c9..2542eb6c6511e 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-returnpads-private.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-returnpads-private.json @@ -19,6 +19,7 @@ "_source": { "enabled": true }, + "dynamic": false, "properties": { "ecs.version": { "type": "keyword", diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-sq-executables.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-sq-executables.json index 602cddb665391..f7865de3168e3 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-sq-executables.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-sq-executables.json @@ -15,6 +15,7 @@ "_source": { "mode": "synthetic" }, + "dynamic": false, "properties": { "ecs.version": { "type": "keyword", diff --git a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-sq-leafframes.json b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-sq-leafframes.json index 2749d2746408d..fd84b398f2d2c 100644 --- a/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-sq-leafframes.json +++ b/x-pack/plugin/core/src/main/resources/org/elasticsearch/xpack/profiler/index-template/profiling-sq-leafframes.json @@ -15,6 +15,7 @@ "_source": { "mode": "synthetic" }, + "dynamic": false, "properties": { "ecs.version": { "type": "keyword",