Skip to content

Commit 9cf4990

Browse files
authored
[chore][processor/resourcedetectionprocessor] sort metadata.yaml entries (#43495)
#### Description Sort metadata.yaml file in preparation for sort validation using mdatagen. Context: open-telemetry/opentelemetry-collector#13782 Signed-off-by: Paulo Dias <[email protected]>
1 parent 2c9d3a6 commit 9cf4990

File tree

13 files changed

+190
-190
lines changed

13 files changed

+190
-190
lines changed

processor/resourcedetectionprocessor/internal/aws/ec2/metadata.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,38 @@ type: resourcedetectionprocessor/ec2
33
parent: resourcedetection
44

55
resource_attributes:
6-
host.name:
7-
description: The hostname
8-
type: string
9-
enabled: true
10-
host.id:
11-
description: The host.id
12-
type: string
13-
enabled: true
14-
cloud.provider:
15-
description: The cloud provider
16-
type: string
17-
enabled: true
186
cloud.account.id:
197
description: The cloud account id
208
type: string
219
enabled: true
10+
cloud.availability_zone:
11+
description: The cloud availability zone
12+
type: string
13+
enabled: true
2214
cloud.platform:
2315
description: The cloud platform
2416
type: string
2517
enabled: true
18+
cloud.provider:
19+
description: The cloud provider
20+
type: string
21+
enabled: true
2622
cloud.region:
2723
description: The cloud region
2824
type: string
2925
enabled: true
30-
cloud.availability_zone:
31-
description: The cloud availability zone
26+
host.id:
27+
description: The host.id
3228
type: string
3329
enabled: true
3430
host.image.id:
3531
description: The host image id
3632
type: string
3733
enabled: true
34+
host.name:
35+
description: The hostname
36+
type: string
37+
enabled: true
3838
host.type:
3939
description: The host instance type
4040
type: string

processor/resourcedetectionprocessor/internal/aws/ecs/metadata.yaml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,14 @@ type: resourcedetectionprocessor/ecs
33
parent: resourcedetection
44

55
resource_attributes:
6-
cloud.provider:
7-
description: The cloud.provider
8-
type: string
9-
enabled: true
10-
cloud.platform:
11-
description: The cloud.platform
12-
type: string
13-
enabled: true
14-
cloud.account.id:
15-
description: The cloud.account.id
16-
type: string
17-
enabled: true
18-
cloud.region:
19-
description: The cloud.region
20-
type: string
21-
enabled: true
22-
cloud.availability_zone:
23-
description: The cloud.availability_zone
24-
type: string
25-
enabled: true
266
aws.ecs.cluster.arn:
277
description: The aws.ecs.cluster.arn
288
type: string
299
enabled: true
10+
aws.ecs.launchtype:
11+
description: The aws.ecs.launchtype
12+
type: string
13+
enabled: true
3014
aws.ecs.task.arn:
3115
description: The aws.ecs.task.arn
3216
type: string
@@ -43,25 +27,41 @@ resource_attributes:
4327
description: The aws.ecs.task.revision
4428
type: string
4529
enabled: true
46-
aws.ecs.launchtype:
47-
description: The aws.ecs.launchtype
48-
type: string
30+
aws.log.group.arns:
31+
description: The aws.log.group.arns
32+
type: slice
4933
enabled: true
5034
aws.log.group.names:
5135
description: The aws.log.group.names
5236
type: slice
5337
enabled: true
54-
aws.log.group.arns:
55-
description: The aws.log.group.arns
38+
aws.log.stream.arns:
39+
description: The aws.log.stream.arns
5640
type: slice
5741
enabled: true
5842
aws.log.stream.names:
5943
description: The aws.log.stream.names
6044
type: slice
6145
enabled: true
62-
aws.log.stream.arns:
63-
description: The aws.log.stream.arns
64-
type: slice
46+
cloud.account.id:
47+
description: The cloud.account.id
48+
type: string
49+
enabled: true
50+
cloud.availability_zone:
51+
description: The cloud.availability_zone
52+
type: string
53+
enabled: true
54+
cloud.platform:
55+
description: The cloud.platform
56+
type: string
57+
enabled: true
58+
cloud.provider:
59+
description: The cloud.provider
60+
type: string
61+
enabled: true
62+
cloud.region:
63+
description: The cloud.region
64+
type: string
6565
enabled: true
6666

6767
tests:

processor/resourcedetectionprocessor/internal/aws/eks/metadata.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,24 @@ type: resourcedetectionprocessor/eks
33
parent: resourcedetection
44

55
resource_attributes:
6-
cloud.provider:
7-
description: The cloud.provider
8-
type: string
9-
enabled: true
10-
cloud.platform:
11-
description: The cloud.platform
12-
type: string
13-
enabled: true
146
cloud.account.id:
157
description: The cloud account id
168
type: string
179
enabled: false
18-
cloud.region:
19-
description: The cloud region
20-
type: string
21-
enabled: false
2210
cloud.availability_zone:
2311
description: The cloud availability zone
2412
type: string
2513
enabled: false
26-
host.name:
27-
description: The hostname
14+
cloud.platform:
15+
description: The cloud.platform
16+
type: string
17+
enabled: true
18+
cloud.provider:
19+
description: The cloud.provider
20+
type: string
21+
enabled: true
22+
cloud.region:
23+
description: The cloud region
2824
type: string
2925
enabled: false
3026
host.id:
@@ -35,6 +31,10 @@ resource_attributes:
3531
description: The host image id
3632
type: string
3733
enabled: false
34+
host.name:
35+
description: The hostname
36+
type: string
37+
enabled: false
3838
host.type:
3939
description: The host id
4040
type: string

processor/resourcedetectionprocessor/internal/aws/elasticbeanstalk/metadata.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ type: resourcedetectionprocessor/elastic_beanstalk
33
parent: resourcedetection
44

55
resource_attributes:
6-
cloud.provider:
7-
description: The cloud.provider
8-
type: string
9-
enabled: true
106
cloud.platform:
117
description: The cloud.platform
128
type: string
139
enabled: true
10+
cloud.provider:
11+
description: The cloud.provider
12+
type: string
13+
enabled: true
1414
deployment.environment:
1515
description: The deployment.environment
1616
type: string

processor/resourcedetectionprocessor/internal/aws/lambda/metadata.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,6 @@ type: resourcedetectionprocessor/lambda
33
parent: resourcedetection
44

55
resource_attributes:
6-
cloud.provider:
7-
description: The cloud.provider
8-
type: string
9-
enabled: true
10-
cloud.platform:
11-
description: The cloud.platform
12-
type: string
13-
enabled: true
14-
cloud.region:
15-
description: The cloud.region
16-
type: string
17-
enabled: true
186
aws.log.group.names:
197
description: The aws.log.group.names
208
type: slice
@@ -23,12 +11,16 @@ resource_attributes:
2311
description: The aws.log.stream.names
2412
type: slice
2513
enabled: true
26-
faas.name:
27-
description: faas.name
14+
cloud.platform:
15+
description: The cloud.platform
2816
type: string
2917
enabled: true
30-
faas.version:
31-
description: The faas.version
18+
cloud.provider:
19+
description: The cloud.provider
20+
type: string
21+
enabled: true
22+
cloud.region:
23+
description: The cloud.region
3224
type: string
3325
enabled: true
3426
faas.instance:
@@ -39,6 +31,14 @@ resource_attributes:
3931
description: The faas.max_memory
4032
type: string
4133
enabled: true
34+
faas.name:
35+
description: faas.name
36+
type: string
37+
enabled: true
38+
faas.version:
39+
description: The faas.version
40+
type: string
41+
enabled: true
4242

4343
tests:
4444
skip_lifecycle: true

processor/resourcedetectionprocessor/internal/azure/aks/metadata.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ type: resourcedetectionprocessor/aks
33
parent: resourcedetection
44

55
resource_attributes:
6-
cloud.provider:
7-
description: The cloud.provider
8-
type: string
9-
enabled: true
106
cloud.platform:
117
description: The cloud.platform
128
type: string
139
enabled: true
10+
cloud.provider:
11+
description: The cloud.provider
12+
type: string
13+
enabled: true
1414
k8s.cluster.name:
1515
description: The k8s.cluster.name parsed from the Azure Instance Metadata Service's infrastructure resource group field
1616
type: string

processor/resourcedetectionprocessor/internal/azure/metadata.yaml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,22 @@ type: resourcedetectionprocessor/azure
33
parent: resourcedetection
44

55
resource_attributes:
6-
cloud.provider:
7-
description: The cloud.provider
6+
azure.resourcegroup.name:
7+
description: The azure.resourcegroup.name
8+
enabled: true
89
type: string
10+
azure.vm.name:
11+
description: The azure.vm.name
912
enabled: true
10-
cloud.platform:
11-
description: The cloud.platform
1213
type: string
14+
azure.vm.scaleset.name:
15+
description: The azure.vm.scaleset.name
1316
enabled: true
14-
cloud.region:
15-
description: The cloud.region
1617
type: string
18+
azure.vm.size:
19+
description: The azure.vm.size
1720
enabled: true
21+
type: string
1822
cloud.account.id:
1923
description: The cloud.account.id
2024
type: string
@@ -23,27 +27,23 @@ resource_attributes:
2327
description: The cloud availability zone
2428
type: string
2529
enabled: false
26-
host.name:
27-
description: The hostname
30+
cloud.platform:
31+
description: The cloud.platform
2832
type: string
2933
enabled: true
30-
host.id:
31-
description: The host.id
34+
cloud.provider:
35+
description: The cloud.provider
3236
type: string
3337
enabled: true
34-
azure.resourcegroup.name:
35-
description: The azure.resourcegroup.name
36-
enabled: true
38+
cloud.region:
39+
description: The cloud.region
3740
type: string
38-
azure.vm.name:
39-
description: The azure.vm.name
4041
enabled: true
42+
host.id:
43+
description: The host.id
4144
type: string
42-
azure.vm.scaleset.name:
43-
description: The azure.vm.scaleset.name
4445
enabled: true
46+
host.name:
47+
description: The hostname
4548
type: string
46-
azure.vm.size:
47-
description: The azure.vm.size
4849
enabled: true
49-
type: string

processor/resourcedetectionprocessor/internal/consul/metadata.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ resource_attributes:
77
description: The cloud.region
88
type: string
99
enabled: true
10-
host.name:
11-
description: The hostname
12-
type: string
13-
enabled: true
1410
host.id:
1511
description: The host.id
1612
type: string
1713
enabled: true
14+
host.name:
15+
description: The hostname
16+
type: string
17+
enabled: true

0 commit comments

Comments
 (0)