-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatadog-postgres.yaml
More file actions
58 lines (46 loc) · 1.44 KB
/
datadog-postgres.yaml
File metadata and controls
58 lines (46 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
init_config:
instances:
- host: postgres
port: 5432
username: datadog
password: datadog
dbname: person
# Connection Settings
connect_timeout: 10
read_timeout: 10
# SSL Configuration
ssl: "disable"
# Tags for better organization
tags:
- env:${DD_ENV}
- service:person-api
- database:postgresql
# Basic Metrics Collection
collect_default_database: true
collect_count_metrics: true
collect_activity_metrics: true
collect_database_size_metrics: true
collect_bloat_metrics: true
# Lock Metrics (recommended for monitoring contention)
collect_lock_metrics: true
# Deep Database Monitoring
deep_database_monitoring: true
# Query Metrics Configuration
query_metrics:
enabled: true
run_sync: false
collection_interval: 10
# Query Activity Configuration
query_activity:
enabled: true
collection_interval: 10
# Query Samples Configuration
query_samples:
enabled: true
collection_interval: 10 # Increased from 1 to reduce overhead
# Statement Samples Configuration
statement_samples:
enabled: true
collection_interval: 10
# Settings for Query Metrics collection
query_timeout: 5