1 title: Database statistics for PostgreSQL
3 catalog: app/postgresql
7 This check handles the metrics returned from PostgreSQL's statistics
8 functions {pg_stat_database} and {pg_database_size}.
9 It allows monitoring of {disk blocks read}, but PostgreSQL seems to not
10 have a simple "written bytes" or "write IOs" counter, meaning this
11 information cannot be directly monitored.
13 Instead, the check allows more fine-grained monitoring of database activity
14 by tracking what the queries really do.
15 You can monitor both "read statements" like {fetches}, as well as
16 "write statements as {update/delete/insert}. Finally it allows monitoring of
17 {commits}, which PostgreSQL tracks down to the sub-transaction level.
19 You can then define levels on the per-second amount of the statements.
21 This check relies on data reported by the agent-side plugin {mk_postgres}
24 One item is generated per database.