Skip to content

Commit 9e6c5f3

Browse files
authored
Merge pull request 0xPolygon#1779 from 0xPolygon/hosted/DEVOPS-3352-integrate-coralogix-monitoring
Fix for deployment to 2 parallel envs on staging and prod.
2 parents 031ec48 + 30fa2b1 commit 9e6c5f3

File tree

9 files changed

+684
-68
lines changed

9 files changed

+684
-68
lines changed

.github/assets/dev-taskdef.json

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
"containerDefinitions": [{
77
"dnsSearchDomains": null,
88
"environmentFiles": [],
9+
"logConfiguration": {
10+
"logDriver": "awsfirelens",
11+
"options": {
12+
"Name": "OpenTelemetry"
13+
}
14+
},
915
"entryPoint": null,
1016
"portMappings": [{
1117
"hostPort": 80,
@@ -48,7 +54,68 @@
4854
"repositoryCredentials": {
4955
"credentialsParameter": ""
5056
}
51-
}],
57+
},
58+
{
59+
"essential": false,
60+
"name": "otel-collector",
61+
"image": "otel/opentelemetry-collector-contrib",
62+
"firelensConfiguration": {
63+
"type": "fluentbit",
64+
"options": {}
65+
},
66+
"portMappings": [
67+
{
68+
"name": "otel-collector-4317-tcp",
69+
"containerPort": 4317,
70+
"hostPort": 4317,
71+
"protocol": "tcp",
72+
"appProtocol": "grpc"
73+
},
74+
{
75+
"name": "otel-collector-4318-tcp",
76+
"containerPort": 4318,
77+
"hostPort": 4318,
78+
"protocol": "tcp",
79+
"appProtocol": "grpc"
80+
}
81+
],
82+
"command": [
83+
"--config",
84+
"env:SSM_CONFIG"
85+
],
86+
"environment": [
87+
{
88+
"name": "CORALOGIX_DOMAIN",
89+
"value": "eu2.coralogix.com"
90+
}
91+
],
92+
"secrets": [
93+
{
94+
"name": "SSM_CONFIG",
95+
"valueFrom": "arn:aws:ssm:eu-west-1:058264511034:parameter/CORALOGIX/CX_OTEL/config.yaml"
96+
},
97+
{
98+
"name": "PRIVATE_KEY",
99+
"valueFrom": "arn:aws:ssm:eu-west-1:058264511034:parameter/CORALOGIX/PRIVATE_KEY"
100+
}
101+
],
102+
"user": "0",
103+
"memoryReservation": 50,
104+
"resourceRequirements": null,
105+
"environmentFiles": [],
106+
"mountPoints": null,
107+
"volumesFrom": null,
108+
"hostname": null,
109+
"workingDirectory": null,
110+
"extraHosts": null,
111+
"logConfiguration": null,
112+
"ulimits": null,
113+
"dockerLabels": null,
114+
"dependsOn": null,
115+
"repositoryCredentials": {
116+
"credentialsParameter": ""
117+
}
118+
}],
52119
"volumes": [],
53120
"networkMode": "awsvpc",
54121
"memory": "1024",
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
{
2+
"requiresCompatibilities": [
3+
"FARGATE"
4+
],
5+
"inferenceAccelerators": [],
6+
"containerDefinitions": [{
7+
"dnsSearchDomains": null,
8+
"environmentFiles": [],
9+
"logConfiguration": {
10+
"logDriver": "awsfirelens",
11+
"options": {
12+
"Name": "OpenTelemetry"
13+
}
14+
},
15+
"entryPoint": null,
16+
"portMappings": [{
17+
"hostPort": 80,
18+
"protocol": "tcp",
19+
"containerPort": 80
20+
}],
21+
"command": null,
22+
"linuxParameters": null,
23+
"cpu": 0,
24+
"environment": null,
25+
"resourceRequirements": null,
26+
"ulimits": null,
27+
"dnsServers": null,
28+
"mountPoints": null,
29+
"workingDirectory": null,
30+
"secrets": null,
31+
"dockerSecurityOptions": null,
32+
"memory": null,
33+
"memoryReservation": null,
34+
"volumesFrom": null,
35+
"stopTimeout": null,
36+
"image": "test",
37+
"startTimeout": null,
38+
"firelensConfiguration": null,
39+
"dependsOn": null,
40+
"disableNetworking": null,
41+
"interactive": null,
42+
"healthCheck": null,
43+
"essential": true,
44+
"links": null,
45+
"hostname": null,
46+
"extraHosts": null,
47+
"pseudoTerminal": null,
48+
"user": null,
49+
"readonlyRootFilesystem": null,
50+
"dockerLabels": null,
51+
"systemControls": null,
52+
"privileged": null,
53+
"name": "polygon-docs-dev",
54+
"repositoryCredentials": {
55+
"credentialsParameter": ""
56+
}
57+
},
58+
{
59+
"essential": false,
60+
"name": "otel-collector",
61+
"image": "otel/opentelemetry-collector-contrib",
62+
"firelensConfiguration": {
63+
"type": "fluentbit",
64+
"options": {}
65+
},
66+
"portMappings": [
67+
{
68+
"name": "otel-collector-4317-tcp",
69+
"containerPort": 4317,
70+
"hostPort": 4317,
71+
"protocol": "tcp",
72+
"appProtocol": "grpc"
73+
},
74+
{
75+
"name": "otel-collector-4318-tcp",
76+
"containerPort": 4318,
77+
"hostPort": 4318,
78+
"protocol": "tcp",
79+
"appProtocol": "grpc"
80+
}
81+
],
82+
"command": [
83+
"--config",
84+
"env:SSM_CONFIG"
85+
],
86+
"environment": [
87+
{
88+
"name": "CORALOGIX_DOMAIN",
89+
"value": "eu2.coralogix.com"
90+
}
91+
],
92+
"secrets": [
93+
{
94+
"name": "SSM_CONFIG",
95+
"valueFrom": "arn:aws:ssm:eu-west-1:058264511034:parameter/CORALOGIX/CX_OTEL/config.yaml"
96+
},
97+
{
98+
"name": "PRIVATE_KEY",
99+
"valueFrom": "arn:aws:ssm:eu-west-1:058264511034:parameter/CORALOGIX/PRIVATE_KEY"
100+
}
101+
],
102+
"user": "0",
103+
"memoryReservation": 50,
104+
"resourceRequirements": null,
105+
"environmentFiles": [],
106+
"mountPoints": null,
107+
"volumesFrom": null,
108+
"hostname": null,
109+
"workingDirectory": null,
110+
"extraHosts": null,
111+
"logConfiguration": null,
112+
"ulimits": null,
113+
"dockerLabels": null,
114+
"dependsOn": null,
115+
"repositoryCredentials": {
116+
"credentialsParameter": ""
117+
}
118+
}],
119+
"volumes": [],
120+
"networkMode": "awsvpc",
121+
"memory": "1024",
122+
"cpu": "512",
123+
"executionRoleArn": "arn:aws:iam::058264511034:role/polygon-docs-dev-TaskRole",
124+
"family": "polygon-docs-dev-taskdefinition",
125+
"taskRoleArn": "arn:aws:iam::058264511034:role/polygon-docs-dev-TaskRole",
126+
"runtimePlatform": {
127+
"operatingSystemFamily": "LINUX"
128+
},
129+
"tags": [{
130+
"key": "Role",
131+
"value": "frontend-application"
132+
},
133+
{
134+
"key": "ParentService",
135+
"value": "polygon-docs-dev"
136+
},
137+
{
138+
"key": "Environment",
139+
"value": "dev"
140+
},
141+
{
142+
"key": "Service",
143+
"value": "docs-dev.polygon.technology"
144+
},
145+
{
146+
"key": "Host",
147+
"value": "AWS"
148+
},
149+
{
150+
"key": "IAC",
151+
"value": "terraform-workspace-aws-dev-apps-eu-west-1-apps-polygon-docs-dev-polygon-technology"
152+
},
153+
{
154+
"key": "Team",
155+
"value": "documentation"
156+
},
157+
{
158+
"key": "Name",
159+
"value": "polygon-docs-dev-taskdefinition"
160+
}
161+
]
162+
}

0 commit comments

Comments
 (0)