From 1bf7f2435f3c7cc4a0860a5752865d52ed389181 Mon Sep 17 00:00:00 2001 From: Heikki Hulkko Date: Mon, 21 Nov 2016 14:02:43 +0200 Subject: [PATCH] Add confirmed_flush_lsn to pg_stat_replication --- postgres_exporter.go | 1 + 1 file changed, 1 insertion(+) diff --git a/postgres_exporter.go b/postgres_exporter.go index a98227c0..e7970332 100644 --- a/postgres_exporter.go +++ b/postgres_exporter.go @@ -239,6 +239,7 @@ var metricMaps = map[string]map[string]ColumnMapping{ "restart_lsn": {DISCARD, "The address (LSN) of oldest WAL which still might be required by the consumer of this slot and thus won't be automatically removed during checkpoints", nil, nil}, "pg_current_xlog_location": {DISCARD, "pg_current_xlog_location", nil, nil}, "pg_xlog_location_diff": {GAUGE, "Lag in bytes between master and slave", nil, semver.MustParseRange(">=9.2.0")}, + "confirmed_flush_lsn": {DISCARD, "LSN position a consumer of a slot has confirmed flushing the data received", nil, nil}, }, "pg_stat_activity": { "datname": {LABEL, "Name of this database", nil, nil},