pgmon/sample-config/pgmon.yml
James Campbell c0e1531083
Add query test script and test mode
* Add a mode to test all metric queries

* Add a script to run query tests against different versions of
  PostgeSQL

* Add Docker elements for query testing

* Switch to using a --config flag when specifying the config file

* Fix some metric queries

* Allow the agent address to be configured

* Allow the sslmode connection parameter to be configured
2025-05-22 14:53:25 -04:00

53 lines
1.2 KiB
YAML

# The address the agent binds to
#address: 127.0.0.1
# The port the agent listens on for requests
#port: 5400
# Min PostgreSQL connection pool size (per database)
#min_pool_size: 0
# Max PostgreSQL connection pool size (per database)
#max_pool_size: 4
# How long a connection can sit idle in the pool before it's removed (seconds)
#max_idle_time: 30
# 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'
# Database user to connect as
#dbuser: 'postgres'
# Database host
#dbhost: '/var/run/postgresql'
# Database port
#dbport: 5432
# Default database to connect to when none is specified for a metric
#dbname: 'postgres'
# SSL connection mode
#ssl_mode: require
# Timeout for getting a connection slot from a pool
#pool_slot_timeout: 5
# PostgreSQL connection timeout (seconds)
# Note: It can actually be double this because of retries
#connect_timeout: 5
# Time to wait before trying to reconnect again after a reconnect failure (seconds)
#reconnect_cooldown: 30
# How often to check the version of PostgreSQL (seconds)
#version_check_period: 300
# Metrics
#metrics: {}
include:
- pgmon-metrics.yml