mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
feat: 🎸 datadog
taks
This commit is contained in:
parent
87ac37e643
commit
751d0bb38a
@ -4,8 +4,8 @@
|
||||
{
|
||||
"name": "quivr",
|
||||
"image": "253053805092.dkr.ecr.eu-west-3.amazonaws.com/quivr:c0ff0301002fe6d043270b26dabcfda797437afc",
|
||||
"cpu": "1900",
|
||||
"memory": "3600",
|
||||
"cpu": "2048",
|
||||
"memory": "4096",
|
||||
"portMappings": [
|
||||
{
|
||||
"name": "quivr-5050-tcp",
|
||||
@ -16,34 +16,17 @@
|
||||
}
|
||||
],
|
||||
"command": [
|
||||
"sh",
|
||||
"-c",
|
||||
"export DD_AGENT_HOST=$(curl http://169.254.169.254/latest/meta-data/local-ipv4); ddtrace-run uvicorn main:app --host 0.0.0.0 --port 5050 --workers 6"
|
||||
"uvicorn",
|
||||
"main:app",
|
||||
"--host",
|
||||
"0.0.0.0",
|
||||
"--port",
|
||||
"5050",
|
||||
"--workers",
|
||||
"6"
|
||||
],
|
||||
"essential": true,
|
||||
"environment": [
|
||||
{
|
||||
"name": "DD_ENV",
|
||||
"value": "preview"
|
||||
},
|
||||
{
|
||||
"name": "DD_SERVICE",
|
||||
"value": "backend"
|
||||
},
|
||||
{
|
||||
"name": "DD_VERSION",
|
||||
"value": "1"
|
||||
},
|
||||
{
|
||||
"name": "DD_LOGS_INJECTION",
|
||||
"value": "true"
|
||||
}
|
||||
],
|
||||
"dockerLabels": {
|
||||
"com.datadoghq.tags.env": "preview",
|
||||
"com.datadoghq.tags.service": "backend",
|
||||
"com.datadoghq.tags.version": "1"
|
||||
},
|
||||
"environment": [],
|
||||
"environmentFiles": [
|
||||
{
|
||||
"value": "arn:aws:s3:::quivr-env-variables/preview.env",
|
||||
@ -62,69 +45,6 @@
|
||||
"awslogs-stream-prefix": "ecs"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "datadog-agent",
|
||||
"image": "public.ecr.aws/datadog/agent:latest",
|
||||
"cpu": 100,
|
||||
"memory": 256,
|
||||
"essential": true,
|
||||
"portMappings": [
|
||||
{
|
||||
"hostPort": 8126,
|
||||
"protocol": "tcp",
|
||||
"containerPort": 8126
|
||||
}
|
||||
],
|
||||
"mountPoints": [
|
||||
{
|
||||
"containerPath": "/var/run/docker.sock",
|
||||
"sourceVolume": "docker_sock",
|
||||
"readOnly": null
|
||||
},
|
||||
{
|
||||
"containerPath": "/host/sys/fs/cgroup",
|
||||
"sourceVolume": "cgroup",
|
||||
"readOnly": null
|
||||
},
|
||||
{
|
||||
"containerPath": "/host/proc",
|
||||
"sourceVolume": "proc",
|
||||
"readOnly": null
|
||||
}
|
||||
],
|
||||
"environment": [
|
||||
{
|
||||
"name": "DD_SITE",
|
||||
"value": "datadoghq.com"
|
||||
}
|
||||
],
|
||||
"environmentFiles": [
|
||||
{
|
||||
"value": "arn:aws:s3:::quivr-env-variables/preview.env",
|
||||
"type": "s3"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"volumes": [
|
||||
{
|
||||
"host": {
|
||||
"sourcePath": "/var/run/docker.sock"
|
||||
},
|
||||
"name": "docker_sock"
|
||||
},
|
||||
{
|
||||
"host": {
|
||||
"sourcePath": "/proc/"
|
||||
},
|
||||
"name": "proc"
|
||||
},
|
||||
{
|
||||
"host": {
|
||||
"sourcePath": "/sys/fs/cgroup/"
|
||||
},
|
||||
"name": "cgroup"
|
||||
}
|
||||
],
|
||||
"family": "quivr-preview",
|
||||
@ -132,6 +52,7 @@
|
||||
"executionRoleArn": "arn:aws:iam::253053805092:role/ecsTaskExecutionRole",
|
||||
"networkMode": "awsvpc",
|
||||
"revision": 4,
|
||||
"volumes": [],
|
||||
"status": "ACTIVE",
|
||||
"requiresAttributes": [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user