2 query: "SELECT EXTRACT(EPOCH FROM (now() - pg_last_xact_replay_timestamp())) AS lag_seconds"
7 description: "Replication lag behind master in seconds"
10 query: "SELECT pg_postmaster_start_time as start_time_seconds from pg_postmaster_start_time()"
15 description: "Time at which postmaster started"
18 query: "SELECT current_database() datname, schemaname, relname, seq_scan, seq_tup_read, idx_scan, idx_tup_fetch, n_tup_ins, n_tup_upd, n_tup_del, n_tup_hot_upd, n_live_tup, n_dead_tup, n_mod_since_analyze, COALESCE(last_vacuum, '1970-01-01Z'), COALESCE(last_vacuum, '1970-01-01Z') as last_vacuum, COALESCE(last_autovacuum, '1970-01-01Z') as last_autovacuum, COALESCE(last_analyze, '1970-01-01Z') as last_analyze, COALESCE(last_autoanalyze, '1970-01-01Z') as last_autoanalyze, vacuum_count, autovacuum_count, analyze_count, autoanalyze_count FROM pg_stat_user_tables"
22 description: "Name of current database"
25 description: "Name of the schema that this table is in"
28 description: "Name of this table"
31 description: "Number of sequential scans initiated on this table"
34 description: "Number of live rows fetched by sequential scans"
37 description: "Number of index scans initiated on this table"
40 description: "Number of live rows fetched by index scans"
43 description: "Number of rows inserted"
46 description: "Number of rows updated"
49 description: "Number of rows deleted"
52 description: "Number of rows HOT updated (i.e., with no separate index update required)"
55 description: "Estimated number of live rows"
58 description: "Estimated number of dead rows"
59 - n_mod_since_analyze:
61 description: "Estimated number of rows changed since last analyze"
64 description: "Last time at which this table was manually vacuumed (not counting VACUUM FULL)"
67 description: "Last time at which this table was vacuumed by the autovacuum daemon"
70 description: "Last time at which this table was manually analyzed"
73 description: "Last time at which this table was analyzed by the autovacuum daemon"
76 description: "Number of times this table has been manually vacuumed (not counting VACUUM FULL)"
79 description: "Number of times this table has been vacuumed by the autovacuum daemon"
82 description: "Number of times this table has been manually analyzed"
85 description: "Number of times this table has been analyzed by the autovacuum daemon"
87 pg_statio_user_tables:
88 query: "SELECT current_database() datname, schemaname, relname, heap_blks_read, heap_blks_hit, idx_blks_read, idx_blks_hit, toast_blks_read, toast_blks_hit, tidx_blks_read, tidx_blks_hit FROM pg_statio_user_tables"
92 description: "Name of current database"
95 description: "Name of the schema that this table is in"
98 description: "Name of this table"
101 description: "Number of disk blocks read from this table"
104 description: "Number of buffer hits in this table"
107 description: "Number of disk blocks read from all indexes on this table"
110 description: "Number of buffer hits in all indexes on this table"
113 description: "Number of disk blocks read from this table's TOAST table (if any)"
116 description: "Number of buffer hits in this table's TOAST table (if any)"
119 description: "Number of disk blocks read from this table's TOAST table indexes (if any)"
122 description: "Number of buffer hits in this table's TOAST table indexes (if any)"
125 query: "SELECT pg_database.oid AS datid, pg_database.datname, pg_database_size(pg_database.datname) AS size_bytes FROM pg_database"
131 description: "ID of the database"
134 description: "Name of the database"
137 description: "Disk space used by the database"