Monitor all network requests in your AWS ECS cluster using Subtrace.
SYS_PTRACE
Linux capability to your container linuxParameters
field:
SYS_PTRACE
capability is required because it’s what allows Subtrace
to automatically monitor network activity without any code changes or root
privileges. The ECS UI does not expose this field, hence the JSON-based
update to the task definition.
Set the API token that you created in the Subtrace dashboard
as an environment variable:
SUBTRACE_ANCIENT_KERNEL=1
environment variable in your task
definition to use Subtrace if your cluster is based on the Fargate launch type
by modifying your task with the web interface or by editing the task JSON:my-app-service
, click on Update service.