Commit Graph

11 Commits

Author SHA1 Message Date
Cal Corum
440f017c92 Add HTTP health check endpoint for container monitoring
Implements a comprehensive health check system using aiohttp to support
container orchestration and external monitoring systems.

Features:
- /health endpoint: Basic liveness check (is process running?)
- /ready endpoint: Readiness check (is bot connected to Discord?)
- /metrics endpoint: Detailed bot metrics (guilds, users, cogs, latency)

Changes:
- Add aiohttp to requirements.txt
- Create health_server.py module with HTTP server
- Update paperdynasty.py to run health server alongside bot
- Update docker-compose.yml with HTTP-based healthcheck
- Fix deploy.sh Docker image name

Benefits:
- Auto-restart on bot hangs/deadlocks
- Foundation for external monitoring (Prometheus, Grafana, etc.)
- Detailed diagnostics for troubleshooting
- Industry-standard health check pattern

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-12 14:44:53 -06:00
Cal Corum
65abc8ed55 Remove outdate image links
Add S3 image links
Pull all fielding ratings at game start
2025-06-04 09:54:13 -05:00
Cal Corum
f6bae8c208 Local db to Postgresql 2025-02-08 04:11:04 -06:00
Cal Corum
e399fec853 Calculating wpa for plays 2024-11-06 02:17:28 -06:00
Cal Corum
b4c84b9489 Update requirements.txt 2024-10-17 07:51:08 -05:00
Cal Corum
74cbef8d41 Add pytests, first Game test 2024-10-11 17:29:54 -05:00
Cal Corum
fbe54e50d7 Added base alembic config 2024-10-11 16:42:15 -05:00
Cal Corum
e31dda1d22 Update requirements.txt
re-include peewee
2023-02-25 14:10:55 -06:00
Cal Corum
6c40490988 Update requirements.txt
specify discord version
2023-02-25 14:07:59 -06:00
Cal Corum
304730c6a6 Update requirements.txt
Pull discord from PyPi
2023-02-25 14:07:39 -06:00
Cal Corum
0c638ae6a5
Initial commit 2023-02-19 21:34:38 -06:00