Skip to content

Commit 6ef66f9

Browse files
authored
Increase field limit for OTel metrics to 10 000 (#120591) (#120612)
The default field limit of 1000 seems undersized, especially for the default data stream. Each distinct attribute/dimension name and metric name count towards that limit
1 parent 2c3c8b9 commit 6ef66f9

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

docs/changelog/120591.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 120591
2+
summary: Increase field limit for OTel metrics to 10 000
3+
area: TSDB
4+
type: enhancement
5+
issues: []

x-pack/plugin/otel-data/src/main/resources/component-templates/[email protected]

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ _meta:
55
template:
66
settings:
77
index.mapping.ignore_malformed: true
8+
index.mapping.total_fields.limit: 10000
89
mappings:
910
properties:
1011
start_timestamp:

x-pack/plugin/otel-data/src/main/resources/resources.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# "version" holds the version of the templates and ingest pipelines installed
22
# by xpack-plugin otel-data. This must be increased whenever an existing template is
33
# changed, in order for it to be updated on Elasticsearch upgrade.
4-
version: 7
4+
version: 8
55

66
component-templates:
77
- otel@mappings

0 commit comments

Comments
 (0)