postgres checks for instance stats and hot_standby replication lag