From 20ac124127d4a5de318fca8357a4f8d4542f33fe 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 4ef7c6127..18ed4e402 100644 --- a/postgres_exporter.go +++ b/postgres_exporter.go @@ -261,6 +261,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": map[string]ColumnMapping{ "datname": {LABEL, "Name of this database", nil, nil},