PgHero
A performance dashboard for Postgres, mounted at a path
No ratings yet
- Gem
- pghero
- Repository
- ankane/pghero
- License
- MIT
- Stars
- 8,100
- Added
- July 17, 2026
About
PgHero shows you what your database is doing: slow queries, missing indexes, unused
indexes, table bloat, connections and query statistics.
What you get
- A slow query list backed by
pg_stat_statements - Index suggestions, and unused indexes you can drop
- Space usage per table
- Live queries, with a kill button
- Historical query stats if you enable capture
Mounting it
ruby
# Gemfile
gem "pghero"
# config/routes.rb
authenticate :user, ->(user) { user.admin? } do
mount PgHero::Engine, at: "/pghero"
end
Note
PgHero is Postgres-only. On SQLite or MySQL this is not the tool for you.
Discussion (0)
Sign in to join the discussion.
No comments yet.