|
1 | 1 | { |
2 | | - "family": "{{ relayerName }}-{{ relayerId }}-container-{{ appTag }}", |
| 2 | + "family": "{{ relayerName }}-{{ relayerId }}-container-{{ TESTNET }}", |
3 | 3 | "containerDefinitions": [ |
4 | 4 | { |
5 | | - "name": "{{ relayerName }}-{{ relayerId }}-container-{{ appTag }}", |
| 5 | + "name": "{{ relayerName }}-{{ relayerId }}-container-{{ TESTNET }}", |
6 | 6 | "image": "ghcr.io/sygmaprotocol/sygma-relayer:{{ set Sygma release version }}", |
7 | 7 | "portMappings": [ |
8 | 8 | { |
|
40 | 40 | }, |
41 | 41 | { |
42 | 42 | "name": "SYG_RELAYER_ID", |
43 | | - "value": "5" |
| 43 | + "value": "{{ relayerId }}" |
44 | 44 | }, |
45 | 45 | { |
46 | 46 | "name": "SYG_RELAYER_ENV", |
|
87 | 87 | "logConfiguration": { |
88 | 88 | "logDriver": "awsfirelens", |
89 | 89 | "options": { |
90 | | - "provider": "ecs", |
91 | | - "dd_service": "{{ env }}-relayers-{{ relayerId }}", |
92 | | - "dd_tags": "env:{{ env }},project:chainbridge,relayerid:{{ relayerId }},image:{{ set Sygma release version }}", |
93 | | - "dd_message_key": "log", |
94 | | - "Host": "http-intake.logs.datadoghq.com", |
95 | | - "TLS": "on", |
96 | | - "dd_source": "{{ relayerName }}-{{ relayerId }}-container-{{ appTag }}", |
97 | | - "Name": "datadog" |
98 | | - }, |
99 | | - "secretOptions": [ |
100 | | - { |
101 | | - "name": "apikey", |
102 | | - "valueFrom": "arn:aws:ssm:{{ awsRegion }}:{{ awsAccountId }}:parameter/common/datadog/key" |
103 | | - } |
| 90 | + "tls.verify": "on", |
| 91 | + "remove_keys": "container_id,ecs_task_arn", |
| 92 | + "label_keys": "$source,$container_name,$ecs_task_definition,$ecs_cluster", |
| 93 | + "Port": "443", |
| 94 | + "host": " { request for the Loging ENDPOINT } ", |
| 95 | + "http_user": " { request for the USER_ID } ", |
| 96 | + "tls": "on", |
| 97 | + "line_format": "json", |
| 98 | + "Name": "loki", |
| 99 | + "labels": "job=fluent-bit,env=testnet,project=sygma,service_name=relayer-{{ relayerId }}-container-TESTNET,image={{ imageTag }}" |
| 100 | + }, |
| 101 | + "secretOptions": [ |
| 102 | + { |
| 103 | + "name": "http_passwd", |
| 104 | + "valueFrom": "arn:aws:ssm:{{ awsRegion }}:{{ awsAccountId }}:parameter/sygma/logs/grafana" |
| 105 | + } |
104 | 106 | ] |
105 | 107 | }, |
106 | | - "dependsOn": [ |
107 | | - { |
108 | | - "containerName": "log_router", |
109 | | - "condition": "START" |
110 | | - } |
111 | | - ] |
112 | 108 | }, |
113 | 109 | { |
114 | | - "name": "datadog-agent", |
115 | | - "image": "gcr.io/datadoghq/agent:latest", |
116 | | - "essential": true, |
117 | | - "logConfiguration": { |
118 | | - "logDriver": "awslogs", |
119 | | - "options": { |
120 | | - "awslogs-group": "/ecs/{{ relayerName }}-{{ relayerId }}-{{ appTag }}", |
121 | | - "awslogs-region": "{{ awsRegion }}", |
122 | | - "awslogs-stream-prefix": "ecs" |
123 | | - } |
124 | | - }, |
125 | | - "healthCheck": { |
126 | | - "retries": 3, |
127 | | - "command": ["CMD-SHELL","agent health"], |
128 | | - "timeout": 5, |
129 | | - "interval": 30, |
130 | | - "startPeriod": 15 |
131 | | - }, |
132 | | - "portMappings": [ |
133 | | - { |
134 | | - "hostPort": 8126, |
135 | | - "protocol": "tcp", |
136 | | - "containerPort": 8126 |
137 | | - } |
138 | | - ], |
139 | | - "command": [], |
140 | | - "cpu": 0, |
141 | | - "environment": [ |
142 | | - { |
143 | | - "name": "DD_APM_ENABLED", |
144 | | - "value": "true" |
145 | | - }, |
146 | | - { |
147 | | - "name": "DD_APM_NON_LOCAL_TRAFFIC", |
148 | | - "value": "true" |
149 | | - }, |
150 | | - { |
151 | | - "name": "DD_TAGS", |
152 | | - "value": "env:{{ env }},project:relayer-{{ relayerId }}" |
153 | | - }, |
154 | | - { |
155 | | - "name": "DD_LOG_LEVEL", |
156 | | - "value": "INFO" |
157 | | - }, |
158 | | - { |
159 | | - "name": "ECS_FARGATE", |
160 | | - "value": "true" |
161 | | - }, |
162 | | - { |
163 | | - "name": "ENV", |
164 | | - "value": "{{ env }}" |
165 | | - } |
166 | | - ], |
167 | | - "secrets": [ |
168 | | - { |
169 | | - "name": "DD_API_KEY", |
170 | | - "valueFrom": "arn:aws:ssm:{{ awsRegion }}:{{ awsAccountId }}:parameter/common/datadog/key" |
171 | | - } |
172 | | - ], |
173 | | - "mountPoints": [], |
174 | | - "volumesFrom": [] |
175 | | - }, |
176 | | - { |
177 | | - "name": "log_router", |
178 | | - "image": "amazon/aws-for-fluent-bit:latest", |
179 | | - "essential": true, |
180 | | - "firelensConfiguration": { |
181 | | - "type": "fluentbit", |
182 | | - "options": { |
183 | | - "enable-ecs-log-metadata": "true" |
184 | | - } |
185 | | - }, |
186 | | - "logConfiguration": { |
187 | | - "logDriver": "awslogs", |
188 | | - "options": { |
189 | | - "awslogs-group": "/ecs/{{ relayerName }}-{{ relayerId }}-{{ appTag }}", |
190 | | - "awslogs-region": "{{ awsRegion }}", |
191 | | - "awslogs-stream-prefix": "ecs" |
192 | | - } |
193 | | - }, |
194 | | - "portMappings": [], |
195 | | - "command": [], |
| 110 | + "name": "log_router", |
| 111 | + "image": "grafana/fluent-bit-plugin-loki:2.9.3-amd64", |
196 | 112 | "cpu": 0, |
| 113 | + "memoryReservation": 50, |
| 114 | + "portMappings": [], |
| 115 | + "essential": true, |
197 | 116 | "environment": [], |
198 | 117 | "mountPoints": [], |
| 118 | + "volumesFrom": [], |
199 | 119 | "user": "0", |
200 | | - "volumesFrom": [] |
| 120 | + "logConfiguration": { |
| 121 | + "logDriver": "awslogs", |
| 122 | + "options": { |
| 123 | + "awslogs-group": "/ecs/relayer-{{ relayerId }}-TESTNET", |
| 124 | + "awslogs-create-group": "true", |
| 125 | + "awslogs-region": "{{ awsRegion }}", |
| 126 | + "awslogs-stream-prefix": "ecs" |
| 127 | + } |
| 128 | + }, |
| 129 | + "systemControls": [], |
| 130 | + "firelensConfiguration": { |
| 131 | + "type": "fluentbit", |
| 132 | + "options": { |
| 133 | + "enable-ecs-log-metadata": "true" |
| 134 | + } |
| 135 | + } |
201 | 136 | }, |
202 | 137 | { |
203 | 138 | "name": "otel-collector", |
204 | | - "image": "ghcr.io/sygmaprotocol/sygma-opentelemetry-collector:latest", |
205 | | - "repositoryCredentials": { |
206 | | - "credentialsParameter": "arn:aws:secretsmanager:{{ awsRegion }}:{{ awsAccountId }}:secret:sygma/opentelemetry-Z1wcYA" |
207 | | - }, |
| 139 | + "image": "ghcr.io/sygmaprotocol/sygma-opentelemetry-collector:v1.0.3", |
208 | 140 | "cpu": 0, |
209 | 141 | "portMappings": [], |
210 | 142 | "essential": true, |
211 | 143 | "environment": [], |
212 | 144 | "mountPoints": [], |
213 | 145 | "volumesFrom": [], |
| 146 | + "secrets": [ |
| 147 | + { |
| 148 | + "name": "GRAFANA_CLOUD", |
| 149 | + "valueFrom": "arn:aws:ssm:{{ awsRegion }}:{{ awsAccountId }}:parameter/sygma/basicauth/secrets" |
| 150 | + }, |
| 151 | + { |
| 152 | + "name": "USER_ID", |
| 153 | + "valueFrom": "arn:aws:ssm:{{ awsRegion }}:{{ awsAccountId }}:parameter/sygma/basicauth/userid" |
| 154 | + }, |
| 155 | + { |
| 156 | + "name": "ENDPOINT", |
| 157 | + "valueFrom": "arn:aws:ssm:{{ awsRegion }}:{{ awsAccountId }}:parameter/sygma/logs/grafana/endpoint" |
| 158 | + } |
| 159 | + ], |
214 | 160 | "dockerLabels": {}, |
215 | 161 | "logConfiguration": { |
216 | 162 | "logDriver": "awslogs", |
217 | 163 | "options": { |
218 | | - "awslogs-group": "/ecs/{{ relayerName }}-{{ relayerId }}-{{ appTag }}", |
| 164 | + "awslogs-group": "/ecs/{{ relayerName }}-{{ relayerId }}-{{ TESTNET }}", |
| 165 | + "awslogs-create-group": "True", |
219 | 166 | "awslogs-region": "{{ awsRegion }}", |
220 | 167 | "awslogs-stream-prefix": "ecs" |
221 | | - } |
| 168 | + } |
222 | 169 | } |
223 | 170 | } |
224 | 171 | ], |
|
0 commit comments