Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update postgres ECS docs to include Autodiscovery v2 Annotations #19925

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions postgres/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ To configure this check for an Agent running on ECS:

Set [Autodiscovery Integrations Templates][9] as Docker labels on your application container:

**Annotations v1** (for Datadog Agent < v7.36)

```json
{
"containerDefinitions": [{
Expand All @@ -398,6 +400,20 @@ Set [Autodiscovery Integrations Templates][9] as Docker labels on your applicati
}
```

**Annotations v2** (for Datadog Agent v7.36+)

```json
{
"containerDefinitions": [{
"name": "postgres",
"image": "postgres:latest",
"dockerLabels": {
"com.datadoghq.ad.checks": "{\"postgres\": {\"instances\": [{\"host\":\"%%host%%\", \"port\":5432, \"username\":\"postgres\", \"password\":\"<PASSWORD>\"}]}}"
}
}]
}
```

##### Log collection


Expand Down