Vacuum: PostgreSQL Optimization Advisor & Monitoring for Laravel & Filament #60858
|
Hello everyone! I built Vacuum - a PostgreSQL monitoring and tuning dashboard for Laravel (with an optional Filament plugin). It reads what Postgres already knows about itself (pgstat*, pg_class, pg_stat_statements) and turns it into a page that tells you what's wrong, what it's costing you, and the exact SQL that would fix it. It shows you the statement - it never runs it. What it catches: Everything rolls up into a health score out of 100, computed from the findings themselves. Also in the box: Read-only by design, needs no superuser and no extensions (pg_stat_statements is optional you explicitly open it). Requires: PHP 8.3+, Laravel 11/12/13, PostgreSQL 14+, Filament 4/5 optional Feedback is very welcome and you can check it out here: https://github.com/heyosseus/vacuum |
Replies: 1 comment 1 reply
|
This looks like a really useful tool, especially since it stays read-only and explains why a recommendation is made instead of automatically applying changes. I have one question about the health score. Since different applications have very different workloads, how did you decide on the weighting for each metric? For example, how do you balance something like table bloat against an unused index or a low cache hit ratio? I'm curious whether the scoring is based on PostgreSQL best practices, your own experience, or if it's configurable for different environments. |
This looks like a really useful tool, especially since it stays read-only and explains why a recommendation is made instead of automatically applying changes.
I have one question about the health score. Since different applications have very different workloads, how did you decide on the weighting for each metric? For example, how do you balance something like table bloat against an unused index or a low cache hit ratio?
I'm curious whether the scoring is based on PostgreSQL best practices, your own experience, or if it's configurable for different environments.