Skip to content

Conversation

@mahlberg
Copy link
Contributor

@mahlberg mahlberg commented Jul 7, 2021

When monitoring a cluster with cascade replication the current query
fails with "get_stats_replication_delays". We can instead monitor the
diff using pg_last_wal_receive_lsn, this will emit metrics showing how
much replication delay the replica has compared to the upstream node
(but not relative to the primary instance of the cluster).

When monitoring a cluster with cascade replication the current query
fails with "get_stats_replication_delays". We can instead monitor the
diff using pg_last_wal_receive_lsn, this will emit metrics showing how
much replication delay the replica has compared to the upstream node
(but not relative to the primary instance of the cluster).
@Oscmage
Copy link

Oscmage commented Jul 7, 2021

LGTM

@mahlberg
Copy link
Contributor Author

mahlberg commented Jul 7, 2021

@dflemstr PTAL

@dflemstr dflemstr merged commit ce9766d into spotify:master Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants