chore: replace Promtail with Grafana Alloy for log collection (refs #97)

Promtail 2.9.0 embeds Docker client API v1.42 which is incompatible with
Docker Engine v29 (minimum API v1.44). Grafana Alloy v1.12.2 resolves this
by using a compatible Docker client.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2026-02-05 19:04:41 -06:00
parent ce6b6cf7cf
commit 1b20673ff6
6 changed files with 44 additions and 32 deletions

View File

@@ -102,14 +102,14 @@ This creates `.env.logging` which is sourced by docker-compose.
+-----------------------------------------------------------------------+
|
v
Promtail --> Loki (30-day retention) --> Grafana
Alloy --> Loki (30-day retention) --> Grafana
```
## Troubleshooting
### Logs not appearing in Grafana
1. Check Promtail is running: `docker logs mvp-promtail`
1. Check Alloy is running: `docker logs mvp-alloy`
2. Check Loki is healthy: `curl http://localhost:3100/ready`
3. Verify log rotation is not too aggressive