Once the game was on Kubernetes, I added kube-prometheus-stack: Prometheus for metrics, Alertmanager for alerts and Grafana for dashboards.
The alert rules live in Git with the app, so they're reviewed and versioned like code. I have seven:
- Site down
- A pod restarting repeatedly
- Server error rate too high
- Turn latency (p95) too slow
- The AI returning badly-formed responses too often
- AI spend near the daily budget
- AI spend over the daily budget
The spend alerts matter most for an AI game. A bug or a busy evening can burn through a budget quickly, and I'd rather know in minutes than at the end of the month.
My rule for alerts: each one must tell me something I'd act on. If I'd ignore it, it's a dashboard panel, not an alert. And I fire-tested the "site down" alert on purpose, because an alert you've never seen fire is just a hope.