Binary package “pgstat” in ubuntu mantic
Collects PostgreSQL statistics the same way as a vmstat tool
pgstat is a client utility to gather statistical information from a PostgreSQL
instance in real time, and acts like vmstat or sar.
.
Supported statistics include archiver, bgwriter, connections, databases,
tables, tables I/O, indexes, functions, archives wals, temporary files,
and pgBouncer.