pgcue#
PostgreSQL operational checks and guidance, ready to run.
pgcue bundles read-only checks for a running PostgreSQL server. See which applications hold connections, which statements cost the most, and which databases use the most disk space. Each check explains when to use it and how to read its results.
$ pgcue run storage.database_size --database orders
database_name size
───────────── ─────
orders 12 GB
Features#
- Read-only checks for activity, statements, storage, and WAL.
- Documentation for every check: when to use it, what to look for, and what each column means.
- A guided investigation that shows which applications and transactions are occupying connections.
- SQL for each PostgreSQL version from 14, chosen to match the server.
- Read-only sessions that install nothing in the database.
- Tables for people, JSON for scripts and monitoring, and
--watchfor live views. - An interactive browser, for when you don't know which check you need.
- A single binary for Linux, macOS and Windows, and a container image.
Requirements#
- PostgreSQL 14 or later.
- A role that can connect. Membership of
pg_monitoris recommended, so that results are complete. - Optionally,
pg_stat_statementsforstatements.top.
Start here#
- Tutorial: install pgcue, connect, and investigate common symptoms.
- Connecting: connection settings, encryption, privileges and optional extensions.
- Running checks: parameters, JSON output and monitoring.
- Running investigations: step by step or unattended.
Reference#
- Topics: where to look for which problem.
- Checks: every check, by topic.
- Investigations: every investigation.
- Command reference: commands, options, environment variables and exit statuses.
- Contributing: adding a check, testing and releasing.