You've already forked postgres_exporter
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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user