-
Notifications
You must be signed in to change notification settings - Fork 1
/
taskdefinition.json
85 lines (85 loc) · 2.26 KB
/
taskdefinition.json
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
{
"containerDefinitions": [
{
"name": "app",
"image": "ghcr.io/stefanprodan/podinfo:latest",
"command": [
"./podinfo",
"--port=9898",
"--level=info",
"--otel-service-name=otel-example-service"
],
"portMappings": [
{
"containerPort": 9898,
"hostPort": 9898,
"protocol": "tcp"
}
],
"essential": true,
"environment": [
{
"name": "OTEL_EXPORTER_OTLP_ENDPOINT",
"value": "localhost:4317"
}
],
"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"Name": "opentelemetry"
}
}
},
{
"name": "otel",
"image": "ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.88.0",
"cpu": 0,
"portMappings": [],
"essential": true,
"command": [
"--config",
"/etc/otelcol-contrib/config.yaml"
],
"environment": [],
"mountPoints": [
{
"sourceVolume": "config",
"containerPath": "/etc/otelcol-contrib"
}
],
"volumesFrom": [],
"dependsOn": [
{
"containerName": "config",
"condition": "SUCCESS"
}
],
"user": "0",
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/otel-example-service",
"awslogs-region": "eu-central-1",
"awslogs-stream-prefix": "firelens",
"awslogs-create-group": "true"
}
},
"firelensConfiguration": {
"type": "fluentbit"
}
}
],
"networkMode": "awsvpc",
"volumes": [
{
"name": "config",
"host": {}
}
],
"cpu": "256",
"memory": "1024",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
}
}