Skip to content

Commit 20ac124

Browse files
author
Heikki Hulkko
committed
Add confirmed_flush_lsn to pg_stat_replication
1 parent 22534f7 commit 20ac124

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

postgres_exporter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ var metricMaps = map[string]map[string]ColumnMapping{
261261
"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},
262262
"pg_current_xlog_location": {DISCARD, "pg_current_xlog_location", nil, nil},
263263
"pg_xlog_location_diff": {GAUGE, "Lag in bytes between master and slave", nil, semver.MustParseRange(">=9.2.0")},
264+
"confirmed_flush_lsn": {DISCARD, "LSN position a consumer of a slot has confirmed flushing the data received", nil, nil},
264265
},
265266
"pg_stat_activity": map[string]ColumnMapping{
266267
"datname": {LABEL, "Name of this database", nil, nil},

0 commit comments

Comments
 (0)