4.12. Replication Slot Metrics #

Metrics based on the pg_replication_slots view, collected by the replication_slots plugin:

  • postgresql.replication_slots.info{slot_name, slot_type, slot_active, slot_failover, slot_synced, database}

  • postgresql.replication_slots.wal_retain_bytes{slot_name, slot_type, database}

  • postgresql.replication_slots.safe_wal_size_bytes{slot_name, slot_type, database}

  • postgresql.replication_slots.transactions_retain_age{slot_name, slot_type, database}

  • postgresql.replication_slots.lag_bytes{slot_name, slot_type, database}

  • available from Postgres Pro and PostgreSQL 17:

    • postgresql.replication_slots.inactive_since_unixtime{slot_name, slot_type, database}

    • postgresql.replication_slots.invalidation_reason{slot_name, slot_type, slot_invalidation_reason, database}