Skip to content

Commit 01fdeca

Browse files
authored
apm-data: set concrete values for metricset.interval (#109043)
While testing the upgrade path from 8.14 to 8.15 I noticed an [unexpected mapping error](elastic/apm-server#11529 (comment)). This PR aims at solving it by adding a concrete value to `metricset.interval` mappings as suggested [here](elastic/apm-server#11529 (comment)). Upon testing the upgrade path again the mentioned error did not present themselves anymore.
1 parent 0766b38 commit 01fdeca

17 files changed

+65
-8
lines changed

docs/changelog/109043.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 109043
2+
summary: "Apm-data: set concrete values for `metricset.interval`"
3+
area: Data streams
4+
type: bug
5+
issues: []

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ template:
99
metricset.name:
1010
type: constant_keyword
1111
value: service_destination
12-
metricset.interval:
13-
type: constant_keyword
1412
transaction.duration.histogram:
1513
type: histogram
1614
transaction.duration.summary:

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ template:
99
metricset.name:
1010
type: constant_keyword
1111
value: service_summary
12-
metricset.interval:
13-
type: constant_keyword
1412
transaction.duration.histogram:
1513
type: histogram
1614
transaction.duration.summary:

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ template:
88
metricset.name:
99
type: constant_keyword
1010
value: service_transaction
11-
metricset.interval:
12-
type: constant_keyword
1311
transaction.duration.histogram:
1412
type: histogram
1513
transaction.duration.summary:

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ template:
88
metricset.name:
99
type: constant_keyword
1010
value: transaction
11-
metricset.interval:
12-
type: constant_keyword
1311
transaction.duration.histogram:
1412
type: histogram
1513
transaction.duration.summary:

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ template:
2727
index:
2828
default_pipeline: metrics-apm.service_destination@default-pipeline
2929
final_pipeline: metrics-apm@pipeline
30+
mappings:
31+
properties:
32+
metricset.interval:
33+
type: constant_keyword
34+
value: 10m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ template:
2626
index:
2727
default_pipeline: metrics-apm.service_destination@default-pipeline
2828
final_pipeline: metrics-apm@pipeline
29+
mappings:
30+
properties:
31+
metricset.interval:
32+
type: constant_keyword
33+
value: 1m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ template:
2727
index:
2828
default_pipeline: metrics-apm.service_destination@default-pipeline
2929
final_pipeline: metrics-apm@pipeline
30+
mappings:
31+
properties:
32+
metricset.interval:
33+
type: constant_keyword
34+
value: 60m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ template:
2727
index:
2828
default_pipeline: metrics-apm.service_summary@default-pipeline
2929
final_pipeline: metrics-apm@pipeline
30+
mappings:
31+
properties:
32+
metricset.interval:
33+
type: constant_keyword
34+
value: 10m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ template:
2626
index:
2727
default_pipeline: metrics-apm.service_summary@default-pipeline
2828
final_pipeline: metrics-apm@pipeline
29+
mappings:
30+
properties:
31+
metricset.interval:
32+
type: constant_keyword
33+
value: 1m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ template:
2727
index:
2828
default_pipeline: metrics-apm.service_summary@default-pipeline
2929
final_pipeline: metrics-apm@pipeline
30+
mappings:
31+
properties:
32+
metricset.interval:
33+
type: constant_keyword
34+
value: 60m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ template:
2727
index:
2828
default_pipeline: metrics-apm.service_transaction@default-pipeline
2929
final_pipeline: metrics-apm@pipeline
30+
mappings:
31+
properties:
32+
metricset.interval:
33+
type: constant_keyword
34+
value: 10m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ template:
2626
index:
2727
default_pipeline: metrics-apm.service_transaction@default-pipeline
2828
final_pipeline: metrics-apm@pipeline
29+
mappings:
30+
properties:
31+
metricset.interval:
32+
type: constant_keyword
33+
value: 1m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ template:
2727
index:
2828
default_pipeline: metrics-apm.service_transaction@default-pipeline
2929
final_pipeline: metrics-apm@pipeline
30+
mappings:
31+
properties:
32+
metricset.interval:
33+
type: constant_keyword
34+
value: 60m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ template:
2727
index:
2828
default_pipeline: metrics-apm.transaction@default-pipeline
2929
final_pipeline: metrics-apm@pipeline
30+
mappings:
31+
properties:
32+
metricset.interval:
33+
type: constant_keyword
34+
value: 10m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,8 @@ template:
2626
index:
2727
default_pipeline: metrics-apm.transaction@default-pipeline
2828
final_pipeline: metrics-apm@pipeline
29+
mappings:
30+
properties:
31+
metricset.interval:
32+
type: constant_keyword
33+
value: 1m

x-pack/plugin/apm-data/src/main/resources/index-templates/[email protected]

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,8 @@ template:
2727
index:
2828
default_pipeline: metrics-apm.transaction@default-pipeline
2929
final_pipeline: metrics-apm@pipeline
30+
mappings:
31+
properties:
32+
metricset.interval:
33+
type: constant_keyword
34+
value: 60m

0 commit comments

Comments
 (0)