Skip to content

Commit

Permalink
Merge pull request #1779 from 0xPolygon/hosted/DEVOPS-3352-integrate-…
Browse files Browse the repository at this point in the history
…coralogix-monitoring

Fix for deployment to 2 parallel envs on staging and prod.
  • Loading branch information
sshrihar authored Oct 9, 2024
2 parents 031ec48 + 30fa2b1 commit 9e6c5f3
Show file tree
Hide file tree
Showing 9 changed files with 684 additions and 68 deletions.
69 changes: 68 additions & 1 deletion .github/assets/dev-taskdef.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"containerDefinitions": [{
"dnsSearchDomains": null,
"environmentFiles": [],
"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"Name": "OpenTelemetry"
}
},
"entryPoint": null,
"portMappings": [{
"hostPort": 80,
Expand Down Expand Up @@ -48,7 +54,68 @@
"repositoryCredentials": {
"credentialsParameter": ""
}
}],
},
{
"essential": false,
"name": "otel-collector",
"image": "otel/opentelemetry-collector-contrib",
"firelensConfiguration": {
"type": "fluentbit",
"options": {}
},
"portMappings": [
{
"name": "otel-collector-4317-tcp",
"containerPort": 4317,
"hostPort": 4317,
"protocol": "tcp",
"appProtocol": "grpc"
},
{
"name": "otel-collector-4318-tcp",
"containerPort": 4318,
"hostPort": 4318,
"protocol": "tcp",
"appProtocol": "grpc"
}
],
"command": [
"--config",
"env:SSM_CONFIG"
],
"environment": [
{
"name": "CORALOGIX_DOMAIN",
"value": "eu2.coralogix.com"
}
],
"secrets": [
{
"name": "SSM_CONFIG",
"valueFrom": "arn:aws:ssm:eu-west-1:058264511034:parameter/CORALOGIX/CX_OTEL/config.yaml"
},
{
"name": "PRIVATE_KEY",
"valueFrom": "arn:aws:ssm:eu-west-1:058264511034:parameter/CORALOGIX/PRIVATE_KEY"
}
],
"user": "0",
"memoryReservation": 50,
"resourceRequirements": null,
"environmentFiles": [],
"mountPoints": null,
"volumesFrom": null,
"hostname": null,
"workingDirectory": null,
"extraHosts": null,
"logConfiguration": null,
"ulimits": null,
"dockerLabels": null,
"dependsOn": null,
"repositoryCredentials": {
"credentialsParameter": ""
}
}],
"volumes": [],
"networkMode": "awsvpc",
"memory": "1024",
Expand Down
162 changes: 162 additions & 0 deletions .github/assets/polygon-docs-dev-taskdef.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
{
"requiresCompatibilities": [
"FARGATE"
],
"inferenceAccelerators": [],
"containerDefinitions": [{
"dnsSearchDomains": null,
"environmentFiles": [],
"logConfiguration": {
"logDriver": "awsfirelens",
"options": {
"Name": "OpenTelemetry"
}
},
"entryPoint": null,
"portMappings": [{
"hostPort": 80,
"protocol": "tcp",
"containerPort": 80
}],
"command": null,
"linuxParameters": null,
"cpu": 0,
"environment": null,
"resourceRequirements": null,
"ulimits": null,
"dnsServers": null,
"mountPoints": null,
"workingDirectory": null,
"secrets": null,
"dockerSecurityOptions": null,
"memory": null,
"memoryReservation": null,
"volumesFrom": null,
"stopTimeout": null,
"image": "test",
"startTimeout": null,
"firelensConfiguration": null,
"dependsOn": null,
"disableNetworking": null,
"interactive": null,
"healthCheck": null,
"essential": true,
"links": null,
"hostname": null,
"extraHosts": null,
"pseudoTerminal": null,
"user": null,
"readonlyRootFilesystem": null,
"dockerLabels": null,
"systemControls": null,
"privileged": null,
"name": "polygon-docs-dev",
"repositoryCredentials": {
"credentialsParameter": ""
}
},
{
"essential": false,
"name": "otel-collector",
"image": "otel/opentelemetry-collector-contrib",
"firelensConfiguration": {
"type": "fluentbit",
"options": {}
},
"portMappings": [
{
"name": "otel-collector-4317-tcp",
"containerPort": 4317,
"hostPort": 4317,
"protocol": "tcp",
"appProtocol": "grpc"
},
{
"name": "otel-collector-4318-tcp",
"containerPort": 4318,
"hostPort": 4318,
"protocol": "tcp",
"appProtocol": "grpc"
}
],
"command": [
"--config",
"env:SSM_CONFIG"
],
"environment": [
{
"name": "CORALOGIX_DOMAIN",
"value": "eu2.coralogix.com"
}
],
"secrets": [
{
"name": "SSM_CONFIG",
"valueFrom": "arn:aws:ssm:eu-west-1:058264511034:parameter/CORALOGIX/CX_OTEL/config.yaml"
},
{
"name": "PRIVATE_KEY",
"valueFrom": "arn:aws:ssm:eu-west-1:058264511034:parameter/CORALOGIX/PRIVATE_KEY"
}
],
"user": "0",
"memoryReservation": 50,
"resourceRequirements": null,
"environmentFiles": [],
"mountPoints": null,
"volumesFrom": null,
"hostname": null,
"workingDirectory": null,
"extraHosts": null,
"logConfiguration": null,
"ulimits": null,
"dockerLabels": null,
"dependsOn": null,
"repositoryCredentials": {
"credentialsParameter": ""
}
}],
"volumes": [],
"networkMode": "awsvpc",
"memory": "1024",
"cpu": "512",
"executionRoleArn": "arn:aws:iam::058264511034:role/polygon-docs-dev-TaskRole",
"family": "polygon-docs-dev-taskdefinition",
"taskRoleArn": "arn:aws:iam::058264511034:role/polygon-docs-dev-TaskRole",
"runtimePlatform": {
"operatingSystemFamily": "LINUX"
},
"tags": [{
"key": "Role",
"value": "frontend-application"
},
{
"key": "ParentService",
"value": "polygon-docs-dev"
},
{
"key": "Environment",
"value": "dev"
},
{
"key": "Service",
"value": "docs-dev.polygon.technology"
},
{
"key": "Host",
"value": "AWS"
},
{
"key": "IAC",
"value": "terraform-workspace-aws-dev-apps-eu-west-1-apps-polygon-docs-dev-polygon-technology"
},
{
"key": "Team",
"value": "documentation"
},
{
"key": "Name",
"value": "polygon-docs-dev-taskdefinition"
}
]
}
Loading

0 comments on commit 9e6c5f3

Please sign in to comment.