From e085bf6df2f705ead25d9901deabdbea86080663 Mon Sep 17 00:00:00 2001
From: mrmcpat <109171317+mrdoggopat@users.noreply.github.com>
Date: Wed, 23 Apr 2025 12:35:39 -0400
Subject: [PATCH] Include DD_PROCESS_AGENT_PROCESS_COLLECTION_ENABLED in the
ECS Fargate process collection section
This was not documented in this page, but was documented in the Live Processes documentation: https://docs.datadoghq.com/infrastructure/process/?tab=awsecsfargate#installation
---
ecs_fargate/README.md | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/ecs_fargate/README.md b/ecs_fargate/README.md
index d8bc177ae4d05..aadabe78f94bb 100644
--- a/ecs_fargate/README.md
+++ b/ecs_fargate/README.md
@@ -958,7 +958,16 @@ partial -->
You can view your ECS Fargate processes in Datadog. To see their relationship to ECS Fargate containers, use the Datadog Agent v7.50.0 or later.
-You can monitor processes in ECS Fargate in Datadog by using the [Live Processes page][56]. To enable process collection, add the [`PidMode` parameter][57] in the Task Definition and set it to `task` as follows:
+You can monitor processes in ECS Fargate in Datadog by using the [Live Processes page][56]. To enable process monitoring in ECS Fargate, set the `DD_PROCESS_AGENT_PROCESS_COLLECTION_ENABLED` environment variable to `true` in the Datadog Agent container definition within the task definition:
+
+```
+{
+ "name": "DD_PROCESS_AGENT_PROCESS_COLLECTION_ENABLED",
+ "value": "true"
+}
+```
+
+Then add the [`PidMode` parameter][57] in the Task Definition and set it to `task` as follows:
```text
"pidMode": "task"