pgmon/pgmon.cfg

73 lines
1.1 KiB
INI
Raw Normal View History

2024-05-18 18:09:43 +00:00
##
# Misc agent settings
##
# Where to write/find the agent PID
#pid_file=/tmp/pgmon.pid
##
# Agent communication settings
##
# IPC socket
#ipc_socket=/tmp/pgmon.sock
# IPC communication timeout (s)
#ipc_timeout=10
# Request processing timeout (s)
#request_timeout=10
# Max size of the request queue before it blocks
#request_queue_size=100
# Max time to wait when queueing a request (s)
#request_queue_timeout=2
##
# Agent resource settings
##
# Number of worker threads
#worker_count=4
##
# Logging settings
##
# Log level for stderr logging (or 'off')
#stderr_log_level=info
# Log level for file logging (od 'off')
#file_log_level=info
# Log file
#log_file=pgmon.log
##
# DB connection settings
##
#host=localhost
host=/var/run/postgresql
2024-05-18 18:09:43 +00:00
#port=5432
#user=postgres
#password=None
# Default database to connect to when none is specified for a metric
#dbname=postgres
##
# Monitoring configuration
##
# Metrics
#metrics={}
2024-05-16 15:41:47 +00:00
metric=max_frozen_age:value::SELECT max(age(datfrozenxid)) FROM pg_database
2024-05-18 18:09:43 +00:00
metric=db_stats:row::SELECT * FROM pg_stat_database WHERE datname='{datname}'
metric=discover_dbs:set::SELECT datname FROM pg_database
2024-05-18 18:09:43 +00:00