Skip to content

Commit cd2b274

Browse files
committed
chore: 프로메테우스, 그라파나 볼륨 마운트 추가
1 parent f32a2b8 commit cd2b274

File tree

2 files changed

+36
-11
lines changed

2 files changed

+36
-11
lines changed

task-definition-dev.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
{
6868
"name": "prometheus",
6969
"image": "prometheus-image-placeholder",
70-
"cpu": 100,
70+
"cpu": 200,
7171
"essential": false,
7272
"portMappings": [
7373
{
@@ -76,6 +76,12 @@
7676
"protocol": "tcp"
7777
}
7878
],
79+
"mountPoints": [
80+
{
81+
"sourceVolume": "prometheus-storage",
82+
"containerPath": "/prometheus"
83+
}
84+
],
7985
"logConfiguration": {
8086
"logDriver": "awslogs",
8187
"options": {
@@ -99,6 +105,12 @@
99105
"protocol": "tcp"
100106
}
101107
],
108+
"mountPoints": [
109+
{
110+
"sourceVolume": "grafana-storage",
111+
"containerPath": "/var/lib/grafana"
112+
}
113+
],
102114
"essential": false,
103115
"logConfiguration": {
104116
"logDriver": "awslogs",
@@ -116,7 +128,7 @@
116128
"EC2"
117129
],
118130
"cpu": "1024",
119-
"memory": "900",
131+
"memory": "1024",
120132
"runtimePlatform": {
121133
"cpuArchitecture": "X86_64",
122134
"operatingSystemFamily": "LINUX"

task-definition-prod.json

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"containerDefinitions": [
55
{
66
"name": "bitnagil",
7-
"cpu": 1024,
7+
"cpu": 700,
88
"portMappings": [
99
{
1010
"containerPort": 8080,
@@ -45,10 +45,18 @@
4545
{
4646
"name": "prometheus",
4747
"image": "prometheus-image-placeholder",
48-
"cpu": 256,
49-
"memoryReservation": 256,
48+
"cpu": 200,
5049
"essential": false,
51-
"portMappings": [ { "containerPort": 9090, "protocol": "tcp" } ],
50+
"portMappings": [ {
51+
"containerPort": 9090,
52+
"hostPort": 0,
53+
"protocol": "tcp" } ],
54+
"mountPoints": [
55+
{
56+
"sourceVolume": "prometheus-storage",
57+
"containerPath": "/prometheus"
58+
}
59+
],
5260
"logConfiguration": {
5361
"logDriver": "awslogs",
5462
"options": {
@@ -61,15 +69,20 @@
6169
{
6270
"name": "grafana",
6371
"image": "grafana/grafana:10.4.1",
64-
"cpu": 256,
65-
"memoryReservation": 256,
72+
"cpu": 100,
6673
"portMappings": [
6774
{
6875
"containerPort": 3000,
69-
"hostPort": 3000,
76+
"hostPort": 0,
7077
"protocol": "tcp"
7178
}
7279
],
80+
"mountPoints": [
81+
{
82+
"sourceVolume": "grafana-storage",
83+
"containerPath": "/var/lib/grafana"
84+
}
85+
],
7386
"essential": false,
7487
"logConfiguration": {
7588
"logDriver": "awslogs",
@@ -86,8 +99,8 @@
8699
"requiresCompatibilities": [
87100
"EC2"
88101
],
89-
"cpu": "2048",
90-
"memory": "1028",
102+
"cpu": "1024",
103+
"memory": "1024",
91104
"runtimePlatform": {
92105
"cpuArchitecture": "X86_64",
93106
"operatingSystemFamily": "LINUX"

0 commit comments

Comments
 (0)