^ in my initial reply, I had assumed everything else has been checked already.
Slightly more thorough, but incomplete list below.
A clear sign to guess where you want to start from would be the cpu usage, qps of the db vs server.
Db isn't hitting 80%+, servers are = Need more app servers.
Db hits 80%+ = check indexes first, then scale machines. Both mongo and postgres can be configured to log slow queries.
DB qps grows more than server rps = you possibly have a query in a loop that can be optimised or misconfigured pool.
Nothing is hitting high cpu usage, number of connections don't grow, but latency keeps dropping = probably too few connections in the pool.
We'll help better if you can share more details about the problem. 🙂