1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-11-22 11:02:36 +03:00
Files
postgres_exporter/collector/pg_replication.go
Conrad Hoffmann c3885e840a Export last replay age in replication collector (#1085)
The exported replication lag does not handle all failure modes, and can
report 0 for replicas that are out of sync and incapable of recovery.

A proper replacement for that metric would require a different approach
(see e.g. #1007), but for a lot of folks, simply exporting the age of
the last replay can provide a pretty strong signal for something being
amiss.

I think this solution might be preferable to #977, though the lag
metric needs to be fixed or abandoned eventually.

Signed-off-by: Conrad Hoffmann <ch@bitfehler.net>
2025-02-15 09:15:44 -05:00

2.6 KiB