forked from aws-samples/amazon-ecs-firelens-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtask-definition.json
39 lines (39 loc) · 1.31 KB
/
task-definition.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
{
"family": "firelens-example-signalfx",
"taskRoleArn": "arn:aws:iam::XXXXXXXXXXXX:role/ecs_task_iam_role",
"executionRoleArn": "arn:aws:iam::XXXXXXXXXXXX:role/ecs_task_execution_role",
"containerDefinitions": [
{
"essential": true,
"image": "quay.io/signalfx/fluent-bit-aws:1.3.2",
"name": "log_router",
"firelensConfiguration": {
"type": "fluentbit",
"options": {
"enable-ecs-log-metadata": "true"
}
},
"memoryReservation": 64
},
{
"essential": true,
"image": "nginx",
"name": "app",
"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"Name": "SignalFx",
"MetricName": "com.firelens.example",
"MetricType": "counter",
"Dimensions": "ecs_cluster, container_name",
"Retry_Limit": "2"
},
"secretOptions": {
"name": "Token",
"valueFrom": "arn:${Partition}:secretsmanager:${Region}:${Account}:secret:${SecretId}"
}
},
"memoryReservation": 64
}
]
}