pgmon/sample-config/pgmon.yml
2026-03-15 23:54:27 -04:00

74 lines
1.6 KiB
YAML

# # The name for this agent instance (controles the FUSE directory name)
#name: pgmon
# Mode to set on FUSE files (in octal)
#fuse_mode: 0o400
# Owner to set on FUSE files
#fuse_owner: zabbix
fuse_owner: james
# Group to set on FUSE files
#fuse_group: zabbix
fuse_group: james
# User the agent runs as
agent_user: james
# Groupthe agent runs as
agent_group: james
# 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'
log_level: 'info'
# Base directory for FUSE file system
fuse_base: /tmp/pgmon
# Database user to connect as
#dbuser: 'postgres'
# Database host
#dbhost: '/var/run/postgresql'
dbhost: 127.0.0.1
# Database port
#dbport: 5432
dbport: 54315
# Default database to connect to when none is specified for a metric
#dbname: 'postgres'
# SSL connection mode
#ssl_mode: require
ssl_mode: allow
# 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