Module monitor
Source - SourceReplicationStats
- Replication statistics from the source database (publisher)
- SubscriptionStats
- Subscription statistics from the target database (subscriber)
- get_replication_lag
- Get replication statistics from the source database
Queries pg_stat_replication to see what’s being replicated to subscribers
- get_subscription_status
- Get subscription status from the target database
Queries pg_stat_subscription to see subscription state and progress
- is_replication_caught_up
- Check if replication is caught up (no lag)
Returns true if all replication slots have < 1 second of replay lag