Metrics based on the
pg_replication_slots
view:
postgresql.replication_slots.info
postgresql.replication_slots.wal_retain_bytes
postgresql.replication_slots.safe_wal_size_bytes
postgresql.replication_slots.wal_retain_bytes
postgresql.replication_slots.transactions_retain_age_unixtime
Starting from Postgres Pro and PostgreSQL 17, the following additional metrics are available:
postgresql.replication_slots.inactive_since_unixtime
postgresql.replication_slots.invalidation_reason
(with the slot_invalidation_reason attribute)