@@ -1552,7 +1552,9 @@ metrics:
15521552 - total_relation_size_bytes
15531553 statement_timeout_seconds : 15
15541554 pg_stat_all_indexes :
1555- # Top-N + "other" bucket pattern ported from pgwatch2 (gen2). Reads
1555+ # Top-N + "other" bucket pattern ported from pgwatch2 postgres.ai edition
1556+ # (gitlab.com/postgres-ai/pgwatch2 — our fork of Cybertec's pgwatch2,
1557+ # used as gen2 of our monitoring stack before postgresai). Reads
15561558 # pg_stat_user_indexes so pg_catalog/information_schema/pg_toast are
15571559 # excluded by the Postgres view itself, no hand-curated nspname pattern.
15581560 # The "other" row aggregates the tail so totals stay correct under a
@@ -1599,7 +1601,8 @@ metrics:
15991601 - idx_tup_fetch
16001602 statement_timeout_seconds : 15
16011603 pg_stat_all_tables :
1602- # Top-N + "other" bucket pattern ported from pgwatch2 (gen2). Ranks by
1604+ # Top-N + "other" bucket pattern ported from pgwatch2 postgres.ai edition
1605+ # (gitlab.com/postgres-ai/pgwatch2). Ranks by
16031606 # pg_total_relation_size — large tables are usually the interesting ones,
16041607 # which avoids starving big-but-static tables out of the top-N (the old
16051608 # n_live_tup+n_dead_tup ordering did exactly that).
@@ -2960,7 +2963,8 @@ metrics:
29602963 description : >
29612964 Retrieves table-level I/O statistics from `pg_statio_user_tables`, returning
29622965 block-level read and hit counters for heap, index, TOAST and TOAST-index pages.
2963- Ports the pgwatch2 (gen2) top-N + `'other'` bucket pattern: ranks tables by
2966+ Ports the top-N + `'other'` bucket pattern from pgwatch2 postgres.ai
2967+ edition (gitlab.com/postgres-ai/pgwatch2): ranks tables by
29642968 heap_blks_read, keeps the top 100, and folds the tail into a single `'other'`
29652969 row so totals remain accurate while cardinality stays bounded. Drops rows
29662970 with no I/O activity at all (every counter zero).
@@ -3025,7 +3029,8 @@ metrics:
30253029 pg_statio_all_indexes :
30263030 description : >
30273031 Retrieves index-level I/O statistics from `pg_statio_user_indexes`, returning
3028- block-level read and hit counters per index. Ports the pgwatch2 (gen2)
3032+ block-level read and hit counters per index. Ports the pgwatch2
3033+ postgres.ai edition (gitlab.com/postgres-ai/pgwatch2)
30293034 top-N + `'other'` bucket pattern: ranks indexes by idx_blks_read, keeps the
30303035 top 100, folds the tail into a single `'other'` row, and drops indexes with
30313036 no I/O activity. Filters temp schemas.
0 commit comments