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

fix a bug in the query to fetch shared_buffers setting

This commit is contained in:
Nick Cabatoff
2016-09-07 16:55:41 -04:00
parent b3bb44082a
commit 511ef0eacd

View File

@@ -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"