/
ecs-cloudwatch-xray.yaml
98 lines (93 loc) · 2.3 KB
/
ecs-cloudwatch-xray.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
extensions:
health_check:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch/traces:
timeout: 1s
send_batch_size: 50
batch/metrics:
timeout: 60s
resourcedetection:
detectors:
- env
- ecs
- ec2
resource:
attributes:
- key: TaskDefinitionFamily
from_attribute: aws.ecs.task.family
action: insert
- key: aws.ecs.task.family
action: delete
- key: InstanceId
from_attribute: host.id
action: insert
- key: host.id
action: delete
- key: TaskARN
from_attribute: aws.ecs.task.arn
action: insert
- key: aws.ecs.task.arn
action: delete
- key: TaskDefinitionRevision
from_attribute: aws.ecs.task.revision
action: insert
- key: aws.ecs.task.revision
action: delete
- key: LaunchType
from_attribute: aws.ecs.launchtype
action: insert
- key: aws.ecs.launchtype
action: delete
- key: ClusterARN
from_attribute: aws.ecs.cluster.arn
action: insert
- key: aws.ecs.cluster.arn
action: delete
- key: cloud.provider
action: delete
- key: cloud.platform
action: delete
- key: cloud.account.id
action: delete
- key: cloud.region
action: delete
- key: cloud.availability_zone
action: delete
- key: aws.log.group.names
action: delete
- key: aws.log.group.arns
action: delete
- key: aws.log.stream.names
action: delete
- key: host.image.id
action: delete
- key: host.name
action: delete
- key: host.type
action: delete
exporters:
awsxray:
awsemf/application:
namespace: ECS/AWSOTel/Application
log_group_name: '/aws/ecs/application/metrics'
dimension_rollup_option: NoDimensionRollup
resource_to_telemetry_conversion:
enabled: true
service:
pipelines:
traces:
receivers: [otlp]
processors: [resourcedetection, batch/traces]
exporters: [awsxray]
metrics/application:
receivers: [otlp]
processors: [resourcedetection, resource, batch/metrics]
exporters: [awsemf/application]
extensions: [health_check]