Skip to content

Add pg_last_xact_replay_timestamp metric #22

Open
@labianchin

Description

@labianchin

Expose replication delay in minutes/seconds. This is useful in a "master + long-running" replica setup. This could be an extension to the get_replication_delays() method.

Example query:

SELECT EXTRACT(EPOCH FROM now() - pg_last_xact_replay_timestamp())/60;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions