Is there a way to easily call a procedure/hook on Replset status changes (such a new member being elected Primary)?
You could then configure a hook for the recipients of the alert, for example via Slack, etc.
Thanks for the response Wan! If we’re not using Atlas, what’s our best option to retrieve this information? Polling (via getReplStatus and getReplfConf) regularly and checking for changes in something like ‘MyState’ for statuses and ‘Version’ for configs?