Detecting issue 899 to auto restart


We are trying to detect when the issue 899 ( happen to restart GES without waiting.

Do you know any way to detect when projections are not working properly ?

-> I first thought about how long ago last event was pushed in $all but this issue doesn’t affect $all

-> then I wanted to check last $statsCollected event in $et-$statsCollected but … it doesn’t seem this stream exists, does system events are projected by $by_event_type ? (guessing no ?)

-> I’m now wondering about the stream ‘$projections-$master’, seems to have some events in here periodically …

Do you guys have a smart & easy way to detect the issue, in order to restart the node automatically ?