We had our Sentry broken for about a week when our developers noticed it was showing no events. I was pulled to see what I can do. Someone else set this up originally and I cannot find notes.
Problem was solved with a magical reboot of postgresql.
I’m wondering: is there a way I can query sentry to send an email alert (i.e. to PagerDuty) if it sees no activity for $x time?
Do you know what happened to postres? Check the log and see what it outputed before the restart of the container. Then have some log monitoring (maybe ELK) on those logs to base action on.
I mean sure you can achieve what you want querying sentry with an api call ( List a Project's Issues | Sentry Documentation you can filter by 30 mins) and have some action based on that. Outside of Sentry that is.
Nice! And also keep in mind that the documentation over the API is a bit… Limited. But everything you can do in the web interface, you can do with the API. Feature request: Manage project's alerts via API This was a real eye opener for me.
May I ask how you are running Sentry?
Might be a bit more helpful to post a bigger set of logs. Before the restart and a bit after maybe.