Skip to content

Commit d98d45b

Browse files
authored
Update gcsql.md (#31605)
In the current documentation, we are providing an example of a configuration using annotations v2, however the example is using annotation V1 instead. I have updated the documentation to use the correct V2 annotation.
1 parent 58efb3f commit d98d45b

File tree

1 file changed

+17
-15
lines changed
  • content/en/database_monitoring/setup_postgres

1 file changed

+17
-15
lines changed

content/en/database_monitoring/setup_postgres/gcsql.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -343,22 +343,24 @@ metadata:
343343
tags.datadoghq.com/env: '<ENV>'
344344
tags.datadoghq.com/service: '<SERVICE>'
345345
annotations:
346-
ad.datadoghq.com/service.check_names: '["postgres"]'
347-
ad.datadoghq.com/service.init_configs: '[{}]'
348-
ad.datadoghq.com/service.instances: |
349-
[
350-
{
351-
"dbm": true,
352-
"host": "<INSTANCE_ADDRESS>",
353-
"port": 5432,
354-
"username": "datadog",
355-
"password": "ENC[datadog_user_database_password]",
356-
"gcp": {
357-
"project_id": "<PROJECT_ID>",
358-
"instance_id": "<INSTANCE_ID>"
359-
}
346+
ad.datadoghq.com/postgres.checks: |
347+
{
348+
"postgres": {
349+
"instances": [
350+
{
351+
"dbm": true,
352+
"host": "<INSTANCE_ADDRESS>",
353+
"port": 5432,
354+
"username": "datadog",
355+
"password": "ENC[datadog_user_database_password]",
356+
"gcp": {
357+
"project_id": "<PROJECT_ID>",
358+
"instance_id": "<INSTANCE_ID>"
359+
}
360+
}
361+
]
360362
}
361-
]
363+
}
362364
spec:
363365
ports:
364366
- port: 5432

0 commit comments

Comments
 (0)