pgmon/sample-config/pgmon.yml

74 lines
1.6 KiB
YAML
Raw Normal View History

2026-02-04 05:36:54 +00:00
# # The name for this agent instance (controles the FUSE directory name)
#name: pgmon
2026-02-04 05:36:54 +00:00
# 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
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
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
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'
2026-02-04 05:36:54 +00:00
log_level: 'info'
# Base directory for FUSE file system
fuse_base: /tmp/pgmon
2025-01-08 07:39:20 +00:00
# Database user to connect as
2025-01-08 22:01:11 +00:00
#dbuser: 'postgres'
2025-01-08 07:39:20 +00:00
# Database host
2025-01-08 22:01:11 +00:00
#dbhost: '/var/run/postgresql'
2026-02-04 05:36:54 +00:00
dbhost: 127.0.0.1
2025-01-08 07:39:20 +00:00
# Database port
2025-01-08 22:01:11 +00:00
#dbport: 5432
2026-03-16 03:54:27 +00:00
dbport: 54315
# 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
# SSL connection mode
#ssl_mode: require
2026-02-04 05:36:54 +00:00
ssl_mode: allow
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
# Metrics
#metrics: {}
include:
- pgmon-metrics.yml