-
Notifications
You must be signed in to change notification settings - Fork 770
fix: handle pg_replication_slots/pg_stat_replication on replicas and cascading replicas #548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: handle pg_replication_slots/pg_stat_replication on replicas and cascading replicas #548
Conversation
a49c20d
to
11ab5cc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me. At least for versions ">=10.0.0"
Is there any chance to get review by someone with write access? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Any news? |
11ab5cc
to
e3eaa91
Compare
…cascading replicas Signed-off-by: Michael Todorovic <[email protected]>
1cce3e9
to
e7fdba2
Compare
@mblp I just rebased this MR, basically moving my changes to queries.go. |
Bump, can some review and merge this? |
Can some review and merge this? |
What are we missing to get this merged? |
Actually there's a better change that #914 gets merged as there was more activity on that MR. This is the same exact code now 😂 |
Merged via #1048 |
Hello,
This PR aims to fix #547 where
pg_replication_slots
andpg_stat_replication
metrics don't work well on replicas and cascading replicas (also known as standby leaders on Patroni). This allows standby clusters replication to be monitored :)It has been tested on pg 13, 10.7 and 9.6