mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-02-17 11:07:15 +00:00
fix a bug in the query to fetch shared_buffers setting
This commit is contained in:
parent
b3bb44082a
commit
511ef0eacd
@ -13,7 +13,7 @@ pg_postmaster:
|
||||
description: "Time at which postmaster started"
|
||||
|
||||
pg_settings_shared_buffers:
|
||||
query: "SELECT 8192*setting as bytes from pg_settings where name = 'shared_buffers'"
|
||||
query: "SELECT 8192*setting::int as bytes from pg_settings where name = 'shared_buffers'"
|
||||
metrics:
|
||||
- bytes:
|
||||
usage: "GAUGE"
|
||||
|
Loading…
Reference in New Issue
Block a user