mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-05-02 07:58:12 +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 = `
|
||||
SELECT
|
||||
schemaname,
|
||||
tablename as relname,
|
||||
indexname as indexrelname,
|
||||
pg_class.relpages * 8192::bigint as index_size
|
||||
tablename AS relname,
|
||||
indexname AS indexrelname,
|
||||
pg_class.relpages * 8192::bigint AS index_size
|
||||
FROM
|
||||
pg_indexes
|
||||
INNER JOIN pg_namespace
|
||||
|
Loading…
Reference in New Issue
Block a user