Skip to content

Commit 904d0bc

Browse files
jalvzaxw
authored andcommitted
Rename dataset to avoid ambiguous index pattern generation (#4669)
# Conflicts: # apmpackage/apm/0.1.0/data_stream/app_metrics/manifest.yml
1 parent 6b273c3 commit 904d0bc

7 files changed

Lines changed: 13 additions & 12 deletions

File tree

apmpackage/apm/0.1.0/data_stream/app_metrics/elasticsearch/ingest_pipeline/default.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
"processors": [
44
{
55
"pipeline": {
6-
"name": "metrics-apm-0.1.0-apm_user_agent"
6+
"name": "metrics-apm.app-0.1.0-apm_user_agent"
77
}
88
},
99
{
1010
"pipeline": {
11-
"name": "metrics-apm-0.1.0-apm_user_geo"
11+
"name": "metrics-apm.app-0.1.0-apm_user_geo"
1212
}
1313
},
1414
{
1515
"pipeline": {
16-
"name": "metrics-apm-0.1.0-apm_ingest_timestamp"
16+
"name": "metrics-apm.app-0.1.0-apm_ingest_timestamp"
1717
}
1818
},
1919
{
2020
"pipeline": {
21-
"name": "metrics-apm-0.1.0-apm_remove_span_metadata"
21+
"name": "metrics-apm.app-0.1.0-apm_remove_span_metadata"
2222
}
2323
}
2424
]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
title: APM application metrics
22
type: metrics
3-
dataset: apm
3+
dataset: apm.app
4+
dataset_is_prefix: true
45
ilm_policy: metrics-apm.app_metrics-default_policy

model/metricset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const (
3838
metricsetEventKey = "event"
3939
metricsetTransactionKey = "transaction"
4040
metricsetSpanKey = "span"
41-
AppMetricsDataset = "apm"
41+
AppMetricsDataset = "apm.app"
4242
InternalMetricsDataset = "apm.internal"
4343
)
4444

model/metricset_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestTransform(t *testing.T) {
6363
Output: []common.MapStr{
6464
{
6565
"data_stream.type": "metrics",
66-
"data_stream.dataset": "apm",
66+
"data_stream.dataset": "apm.app",
6767
"processor": common.MapStr{"event": "metric", "name": "metric"},
6868
"service": common.MapStr{
6969
"name": "myservice",
@@ -91,7 +91,7 @@ func TestTransform(t *testing.T) {
9191
Output: []common.MapStr{
9292
{
9393
"data_stream.type": "metrics",
94-
"data_stream.dataset": "apm",
94+
"data_stream.dataset": "apm.app",
9595
"processor": common.MapStr{"event": "metric", "name": "metric"},
9696
"service": common.MapStr{"name": "myservice"},
9797
"labels": common.MapStr{"a_b": "a.b.value"},

processor/stream/test_approved_es_documents/testIntakeIntegrationMetricsets.approved.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"name": "elastic-node",
100100
"version": "3.14.0"
101101
},
102-
"data_stream.dataset": "apm",
102+
"data_stream.dataset": "apm.app",
103103
"data_stream.type": "metrics",
104104
"go": {
105105
"memstats": {
@@ -145,7 +145,7 @@
145145
"name": "elastic-node",
146146
"version": "3.14.0"
147147
},
148-
"data_stream.dataset": "apm",
148+
"data_stream.dataset": "apm.app",
149149
"data_stream.type": "metrics",
150150
"host": {
151151
"ip": "192.0.0.1"

processor/stream/test_approved_es_documents/testIntakeIntegrationMinimalService.approved.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"name": "elastic-node",
77
"version": "3.14.0"
88
},
9-
"data_stream.dataset": "apm",
9+
"data_stream.dataset": "apm.app",
1010
"data_stream.type": "metrics",
1111
"go": {
1212
"memstats": {

processor/stream/test_approved_es_documents/testIntakeIntegrationOptionalTimestamps.approved.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"name": "elastic-node",
166166
"version": "3.14.0"
167167
},
168-
"data_stream.dataset": "apm",
168+
"data_stream.dataset": "apm.app",
169169
"data_stream.type": "metrics",
170170
"host": {
171171
"architecture": "x64",

0 commit comments

Comments
 (0)