2025-05-22 18:53:25 +00:00
|
|
|
# The address the agent binds to
|
|
|
|
|
#address: 127.0.0.1
|
|
|
|
|
|
2025-04-19 04:07:15 +00:00
|
|
|
# The port the agent listens on for requests
|
|
|
|
|
#port: 5400
|
|
|
|
|
|
2025-01-08 07:39:20 +00:00
|
|
|
# Min PostgreSQL connection pool size (per database)
|
2025-01-08 22:01:11 +00:00
|
|
|
#min_pool_size: 0
|
2024-10-24 16:23:19 +00:00
|
|
|
|
2025-01-08 07:39:20 +00:00
|
|
|
# Max PostgreSQL connection pool size (per database)
|
2025-01-08 22:01:11 +00:00
|
|
|
#max_pool_size: 4
|
2025-01-08 07:39:20 +00:00
|
|
|
|
|
|
|
|
# How long a connection can sit idle in the pool before it's removed (seconds)
|
2025-01-08 22:01:11 +00:00
|
|
|
#max_idle_time: 30
|
2024-10-24 16:23:19 +00:00
|
|
|
|
2025-01-08 22:01:11 +00:00
|
|
|
# Log level for stderr logging (see https://docs.python.org/3/library/logging.html#logging-levels)
|
|
|
|
|
# Possible values are: debug, info, warning, error, critical
|
|
|
|
|
#log_level: 'error'
|
2025-01-08 07:39:20 +00:00
|
|
|
|
|
|
|
|
# Database user to connect as
|
2025-01-08 22:01:11 +00:00
|
|
|
#dbuser: 'postgres'
|
2024-10-24 16:23:19 +00:00
|
|
|
|
2025-01-08 07:39:20 +00:00
|
|
|
# Database host
|
2025-01-08 22:01:11 +00:00
|
|
|
#dbhost: '/var/run/postgresql'
|
2025-01-08 07:39:20 +00:00
|
|
|
|
|
|
|
|
# Database port
|
2025-01-08 22:01:11 +00:00
|
|
|
#dbport: 5432
|
2024-10-24 16:23:19 +00:00
|
|
|
|
|
|
|
|
# Default database to connect to when none is specified for a metric
|
2025-01-08 22:01:11 +00:00
|
|
|
#dbname: 'postgres'
|
2025-01-08 07:39:20 +00:00
|
|
|
|
2025-05-22 18:53:25 +00:00
|
|
|
# SSL connection mode
|
|
|
|
|
#ssl_mode: require
|
|
|
|
|
|
2025-01-08 07:39:20 +00:00
|
|
|
# Timeout for getting a connection slot from a pool
|
2025-01-08 22:01:11 +00:00
|
|
|
#pool_slot_timeout: 5
|
2025-01-08 07:39:20 +00:00
|
|
|
|
|
|
|
|
# PostgreSQL connection timeout (seconds)
|
|
|
|
|
# Note: It can actually be double this because of retries
|
2025-01-08 22:01:11 +00:00
|
|
|
#connect_timeout: 5
|
2025-01-08 07:39:20 +00:00
|
|
|
|
|
|
|
|
# Time to wait before trying to reconnect again after a reconnect failure (seconds)
|
2025-01-08 22:01:11 +00:00
|
|
|
#reconnect_cooldown: 30
|
2025-01-08 07:39:20 +00:00
|
|
|
|
|
|
|
|
# How often to check the version of PostgreSQL (seconds)
|
2025-01-08 22:01:11 +00:00
|
|
|
#version_check_period: 300
|
2024-10-24 16:23:19 +00:00
|
|
|
|
|
|
|
|
# Metrics
|
|
|
|
|
#metrics: {}
|
|
|
|
|
|
|
|
|
|
include:
|
|
|
|
|
- pgmon-metrics.yml
|