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/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 |
|