pgmon-0.1.1 is not a library.
pgmon
A PostgreSQL monitoring TUI inspired by pg_activity.
Features
- Real-time views of:
pg_stat_activitypg_stat_databasepg_lockspg_stat_io(PostgreSQL 16+)pg_stat_statements(if extension exists)
- Interactive TUI (Tabs, Table navigation)
- Configurable refresh rate and top-N rows.
Installation
Usage
# Specific home view and sort
CLI Options
-d, --dsn <STRING>: PostgreSQL connection string (required)-r, --refresh-ms <u64>: Refresh interval (default: 1000)-n, --top-n <u32>: Rows to show (default: 10)--home-view <activity|statements>: Initial view-v: Verbose logging