mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-05-03 16:38:01 +00:00
Update collector/pg_index_size.go
Co-authored-by: Joe Adams <github@joeadams.io> Signed-off-by: Felix Yuan <felix.yuan@reddit.com>
This commit is contained in:
parent
745636279d
commit
d526f44582
@ -46,9 +46,9 @@ var (
|
|||||||
indexSizeQuery = `
|
indexSizeQuery = `
|
||||||
SELECT
|
SELECT
|
||||||
schemaname,
|
schemaname,
|
||||||
tablename as relname,
|
tablename AS relname,
|
||||||
indexname as indexrelname,
|
indexname AS indexrelname,
|
||||||
pg_class.relpages * 8192::bigint as index_size
|
pg_class.relpages * 8192::bigint AS index_size
|
||||||
FROM
|
FROM
|
||||||
pg_indexes
|
pg_indexes
|
||||||
INNER JOIN pg_namespace
|
INNER JOIN pg_namespace
|
||||||
|
Loading…
Reference in New Issue
Block a user