1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-08-09 15:42:47 +03:00

fix pg_database_size_bytes metric in queries.yaml (#357)

Co-authored-by: Will Rouesnel <wrouesnel@wrouesnel.com>
This commit is contained in:
Daniel Binkhuysen
2020-02-25 12:57:23 +01:00
committed by GitHub
parent f870f9591b
commit 81f9c78d61

View File

@@ -122,7 +122,7 @@ pg_statio_user_tables:
description: "Number of buffer hits in this table's TOAST table indexes (if any)"
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_bytes FROM pg_database"
master: true
cache_seconds: 30
metrics: