Add queries for tmp and ready files
This commit is contained in:
parent
f740c4012d
commit
174cac4ca6
@ -116,6 +116,34 @@ metrics:
|
|||||||
FROM pg_stat_io
|
FROM pg_stat_io
|
||||||
GROUP BY backend_type
|
GROUP BY backend_type
|
||||||
|
|
||||||
|
temp_files:
|
||||||
|
type: row
|
||||||
|
query:
|
||||||
|
120000: >
|
||||||
|
SELECT count(*) AS count, sum(size) AS size
|
||||||
|
FROM pg_ls_tmpdir()
|
||||||
|
WHERE name LIKE 'pgsql_tmp%'
|
||||||
|
*: >
|
||||||
|
SELECT count(*) AS count, sum(size) AS size
|
||||||
|
FROM pg_ls_dir('base/pgsql_tmp/')
|
||||||
|
WHERE name LIKE 'pgsql_tmp%'
|
||||||
|
|
||||||
|
ready_archive_files:
|
||||||
|
type: value
|
||||||
|
query:
|
||||||
|
120000: >
|
||||||
|
SELECT count(*) AS count
|
||||||
|
FROM pg_ls_archive_statusdir()
|
||||||
|
WHERE name LIKE '%.ready'
|
||||||
|
100000: >
|
||||||
|
SELECT count(*) AS count
|
||||||
|
FROM pg_ls_dir('pg_wal/pgsql_tmp/')
|
||||||
|
WHERE name LIKE '%.ready'
|
||||||
|
*: >
|
||||||
|
SELECT count(*) AS count
|
||||||
|
FROM pg_ls_dir('pg_xlog/pgsql_tmp/')
|
||||||
|
WHERE name LIKE '%.ready'
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Per-database metrics
|
# Per-database metrics
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user