forked from lesovsky/pgscv
-
-
Notifications
You must be signed in to change notification settings - Fork 14
Collectors
Mikhail Grigorev edited this page Dec 26, 2025
·
11 revisions
List of available collectors and information collected by them
Index of content:
System collectors collects metrics only from local system where pgSCV is running.
| Collector | Datasource | Description |
|---|---|---|
| system/loadaverage | /proc/loadavg |
load averages |
| system/cpu | /proc/stat |
cpu usage |
| system/diskstats | /proc/diskstats |
block devices usage |
| system/filesystems | /proc/mounts |
filesystem usage |
| system/netdev | /proc/net/dev |
network interfaces usage |
| system/network | network settings information | |
| system/memory |
/proc/meminfo, /proc/vmstat
|
memory usage |
| system/sysconfig |
/proc/sys, /sys/devices/system
|
system config |
Some of PostgreSQL collectors have specific requirements such as PostgreSQL version or configuration settings. If requirements are not satisfied, collector will not collect metrics. See availability notes.
| Collector | Datasource | Description | Availability |
|---|---|---|---|
| postgres/activity | pg_stat_activity |
current activity stats | |
| postgres/archiver | pg_stat_archiver |
WAL archiving stats | >= Postgres 12 |
| postgres/bgwriter | pg_stat_bgwriter |
background writer and checkpointer stats | |
| postgres/conflicts | pg_stat_database_conflicts |
recovery conflicts occurred during replication | |
| postgres/databases | pg_stat_databases |
databases general stats | |
| postgres/indexes |
pg_stat_user_indexes, pg_statio_user_indexes
|
indexes usage and IO stats | This collector can cause an increase in the load on the database with a large number of indexes, enabling collect_top_index parameter in pgSCV |
| postgres/functions | pg_stat_user_functions |
functions usage and timings stats | |
| postgres/locks | pg_locks |
current activity locks | |
| postgres/logs | System paths | Postgres log messages | >= Postgres 10, logging_collector = on, log_destination = stderr, access to local filesystem |
| postgres/replication | pg_stat_replication |
replication stats | |
| postgres/replication_slots | pg_replication_slots |
replication slots usage stats | |
| postgres/statements | pg_stat_statements |
executed statements stats | pg_stat_statements must be enabled, collecting statistics on queries in a highly loaded database can cause an increase in load, enabling collect_top_query parameter in pgSCV |
| postgres/schemas | pg_catalog.* |
databases' schemas stats from system catalog | >= Postgres 9.5 |
| postgres/settings | pg_show_all_settings() |
current settings | |
| postgres/storage | DATADIR paths | data files/directories usage stats | >= Postgres 10, access to local filesystem |
| postgres/stat_io | pg_stat_io |
I/O statistics | >= Postgres 16, track_io_timing = on, to collect timing counters |
| postgres/stat_slru | pg_stat_slru |
SLRU (simple least-recently-used) caches statistics | >= Postgres 13 |
| postgres/stat_ssl | pg_stat_ssl |
SSL stats | >= Postgres 9.5 |
| postgres/stat_subscription |
pg_stat_subscription, pg_stat_subscription_stats
|
Subscription stats | >= Postgres 10 |
| postgres/subscription_rel |
pg_subscription_rel, pg_stat_subscription
|
Table subscription stats | >= Postgres 10 |
| postgres/tables |
pg_stat_user_tables, pg_statio_user_tables
|
tables usage and IO stats | This collector can cause an increase in the load on the database with a large number of tables, enabling collect_top_table parameter in pgSCV |
| postgres/wal |
pg_stat_wal, WAL functions |
WAL usage (records, FPIs, bytes) | |
| postgres/custom | user-defined metrics based on SQL queries |
| Collector | Datasource | Description |
|---|---|---|
| pgbouncer/pools | SHOW POOLS |
pools usage stats |
| pgbouncer/stats | SHOW STATS |
general pgbouncer stats |
| pgbouncer/settings | SHOW CONFIG |
current settings (including per-database settings) |
| Collector | Datasource | Description |
|---|---|---|
| patroni/common |
/patroni, /history, /config
|
common operational information |
| Collector | Datasource | Description |
|---|---|---|
| system/pgscv | internal | pgSCV internal metrics |