pgmetrics
Collect and display information and stats from a running PostgreSQL
pgmetrics is an open-source, zero-dependency, single-binary tool that can collect 350+ metrics from a running PostgreSQL server and display it in easy-to-read text format or export it as JSON and CSV for scripting. pgmetrics is a PostgreSQL monitoring tool that generates detailed reports on database performance, health, and usage.