pg:diagnose looks awesome, can I use it on my own Linux server? https://blog.heroku.com/archives/2014/8/12/pg-diagnose
If you use Rails, there's https://github.com/ankane/pghero . Other frameworks / languages have equivalent projects, but I haven't used them. But in the end, the data comes from querying special views in database, so it's easy to roll your own if you so desire.