-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtask-definition-monitoring-dev.json
More file actions
96 lines (96 loc) · 2.16 KB
/
task-definition-monitoring-dev.json
File metadata and controls
96 lines (96 loc) · 2.16 KB
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
{
"family": "bitnagil-monitoring-dev",
"networkMode": "bridge",
"containerDefinitions": [
{
"name": "prometheus",
"image": "prometheus-image-placeholder",
"essential": true,
"portMappings": [
{
"containerPort": 9090,
"hostPort": 0,
"protocol": "tcp"
}
],
"mountPoints": [
{
"sourceVolume": "prometheus-storage",
"containerPath": "/prometheus"
}
],
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/prometheus-dev",
"awslogs-region": "ap-northeast-2",
"awslogs-stream-prefix": "ecs"
}
}
},
{
"name": "grafana",
"image": "grafana/grafana:10.4.1",
"links": [
"prometheus"
],
"portMappings": [
{
"containerPort": 3000,
"hostPort": 0,
"protocol": "tcp"
}
],
"environment": [
{
"name": "GF_SERVER_ROOT_URL",
"value": "https://dev.bitnagil.com/grafana"
},
{
"name": "GF_SERVER_SERVE_FROM_SUB_PATH",
"value": "true"
}
],
"mountPoints": [
{
"sourceVolume": "grafana-storage",
"containerPath": "/var/lib/grafana"
}
],
"essential": true,
"logConfiguration": {
"logDriver": "awslogs",
"options": {
"awslogs-group": "/ecs/grafana-dev",
"awslogs-region": "ap-northeast-2",
"awslogs-stream-prefix": "ecs"
}
}
}
],
"volumes": [
{
"name": "prometheus-storage",
"host": {
"sourcePath": "/ecs/prometheus-data"
}
},
{
"name": "grafana-storage",
"host": {
"sourcePath": "/ecs/grafana-data"
}
}
],
"taskRoleArn": "arn:aws:iam::750819668269:role/ecsTaskExecutionRole",
"executionRoleArn": "arn:aws:iam::750819668269:role/ecsTaskExecutionRole",
"requiresCompatibilities": [
"EC2"
],
"cpu": "200",
"memory": "300",
"runtimePlatform": {
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
}
}