mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-05-01 23:48:24 +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"
|
description: "Time at which postmaster started"
|
||||||
|
|
||||||
pg_settings_shared_buffers:
|
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:
|
metrics:
|
||||||
- bytes:
|
- bytes:
|
||||||
usage: "GAUGE"
|
usage: "GAUGE"
|
||||||
|
Loading…
Reference in New Issue
Block a user