Skip to content

Commit

Permalink
Merge pull request #20 from ryte/feature/Datadog_Enriched_Live_Contai…
Browse files Browse the repository at this point in the history
…ners_view

Enable Datadog’s Process Monitoring
  • Loading branch information
phuong-leeo authored Jul 30, 2020
2 parents e428383 + 8ccaafa commit 74152c9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ module "ecs" {

## Changelog

- 0.2.2 - Datadog enriched live containers view with process list
- 0.2.1 - Remove redis-cli from ECS hosts
- 0.2.0 - Upgrade to terraform 0.12.x
- 0.1.5 - Remove redis-cli from ECS hosts (backport)
Expand Down
6 changes: 5 additions & 1 deletion datadog-agent.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ resource "aws_ecs_task_definition" "agent_definition" {
host_path = local.datadog_log_pointer_dir
}

volume {
name = "passwd"
host_path = "/etc/passwd"
}

requires_compatibilities = [
"EC2",
]
Expand All @@ -127,4 +132,3 @@ resource "aws_ecs_service" "agent_service" {
deployment_maximum_percent = 100
deployment_minimum_healthy_percent = 0
}

9 changes: 9 additions & 0 deletions datadog/definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
"containerPath": "/opt/datadog-agent/run",
"sourceVolume": "log_pointer",
"readOnly": false
},
{
"containerPath": "/etc/passwd",
"sourceVolume": "passwd",
"readOnly": true
}
],
"environment": [
Expand Down Expand Up @@ -69,6 +74,10 @@
{
"name": "DD_DOGSTATSD_NON_LOCAL_TRAFFIC",
"value": "true"
},
{
"name": "DD_PROCESS_AGENT_ENABLED",
"value": "true"
}
]
}
Expand Down

0 comments on commit 74152c9

Please sign in to comment.