Added pg_statio_user_tables
This commit is contained in:
parent
e2db729a41
commit
42f9de480a
34
queries.yaml
34
queries.yaml
|
@ -78,6 +78,40 @@ pg_stat_user_tables:
|
||||||
- autoanalyze_count:
|
- autoanalyze_count:
|
||||||
usage: "COUNTER"
|
usage: "COUNTER"
|
||||||
description: "Number of times this table has been analyzed by the autovacuum daemon"
|
description: "Number of times this table has been analyzed by the autovacuum daemon"
|
||||||
|
|
||||||
|
pg_statio_user_tables:
|
||||||
|
query: "SELECT 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"
|
||||||
|
metrics:
|
||||||
|
- schemaname:
|
||||||
|
usage: "LABEL"
|
||||||
|
description: "Name of the schema that this table is in"
|
||||||
|
- relname:
|
||||||
|
usage: "LABEL"
|
||||||
|
description: "Name of this table"
|
||||||
|
- heap_blks_read:
|
||||||
|
usage: "COUNTER"
|
||||||
|
description: "Number of disk blocks read from this table"
|
||||||
|
- heap_blks_hit:
|
||||||
|
usage: "COUNTER"
|
||||||
|
description: "Number of buffer hits in this table"
|
||||||
|
- idx_blks_read:
|
||||||
|
usage: "COUNTER"
|
||||||
|
description: "Number of disk blocks read from all indexes on this table"
|
||||||
|
- idx_blks_hit:
|
||||||
|
usage: "COUNTER"
|
||||||
|
description: "Number of buffer hits in all indexes on this table"
|
||||||
|
- toast_blks_read:
|
||||||
|
usage: "COUNTER"
|
||||||
|
description: "Number of disk blocks read from this table's TOAST table (if any)"
|
||||||
|
- toast_blks_hit:
|
||||||
|
usage: "COUNTER"
|
||||||
|
description: "Number of buffer hits in this table's TOAST table (if any)"
|
||||||
|
- tidx_blks_read:
|
||||||
|
usage: "COUNTER"
|
||||||
|
description: "Number of disk blocks read from this table's TOAST table indexes (if any)"
|
||||||
|
- tidx_blks_hit:
|
||||||
|
usage: "COUNTER"
|
||||||
|
description: "Number of buffer hits in this table's TOAST table indexes (if any)"
|
||||||
|
|
||||||
pg_database:
|
pg_database:
|
||||||
query: " SELECT pg_database.datname, pg_database_size(pg_database.datname) as size FROM pg_database"
|
query: " SELECT pg_database.datname, pg_database_size(pg_database.datname) as size FROM pg_database"
|
||||||
|
|
Loading…
Reference in New Issue