2024-06-03 05:10:45 +00:00
|
|
|
##
|
|
|
|
|
# Misc agent settings
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
# Where to write/find the agent PID
|
|
|
|
|
#pid_file=/tmt/pgmon.pid
|
|
|
|
|
pid_file=/run/pgmon/pgmon.pid
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
# Agent communication settings
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
# IPC socket
|
|
|
|
|
#ipc_socket=/tmp/pgmon.sock
|
|
|
|
|
ipc_socket=/run/pgmon/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')
|
2024-06-06 04:23:46 +00:00
|
|
|
stderr_log_level=off
|
2024-06-03 05:10:45 +00:00
|
|
|
|
|
|
|
|
# Log level for file logging (od 'off')
|
2024-06-06 04:23:46 +00:00
|
|
|
file_log_level=info
|
2024-06-03 05:10:45 +00:00
|
|
|
|
|
|
|
|
# Log file
|
|
|
|
|
#log_file=pgmon.log
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
# DB connection settings
|
|
|
|
|
#
|
|
|
|
|
# Each cluster entry is of the form:
|
|
|
|
|
# name:address:port:dbname:user:password
|
|
|
|
|
#
|
|
|
|
|
# Any element other than the name can be left empty to use the defaults
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
#cluster=local:/var/run/postgresql:5432:postgres:zbx_monitor:
|
|
|
|
|
|
|
|
|
|
# Default database to connect to when none is specified for a metric
|
|
|
|
|
#dbname=postgres
|
|
|
|
|
|
|
|
|
|
##
|
|
|
|
|
# Monitoring configuration
|
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
# Metrics
|
|
|
|
|
#metrics={}
|
|
|
|
|
|
2024-06-06 04:23:46 +00:00
|
|
|
include=/etc/pgmon/pgmon-metrics.cfg
|