trails/infrastructure
Ullrich Schäfer 37fb5fa1c9 Add Journal dashboard, fix Caddy metrics, and improve alerts
Fix blind spot where Caddy 502 errors were invisible: the dashboards and
alerts queried caddy_http_response_duration_seconds (upstream responses only),
missing 502s that Caddy generates itself. Switch to
caddy_http_request_duration_seconds (server-level, all responses).

Add Journal Grafana dashboard with: 502 rate, response codes, request rate
by route, latency percentiles, container restarts/memory/CPU, Node.js event
loop lag and heap, and Loki log panels for errors and Caddy 5xx entries.

Add color coding to Caddy status code panel (green=2xx, blue=3xx, yellow=4xx,
red=5xx). Add log-based error rate panel to the overview dashboard.

New alerts: container restart loop, PostgreSQL connections > 80, application
crash log detection (Loki), and Caddy 502 rate.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:00:00 +02:00
..
grafana Add Journal dashboard, fix Caddy metrics, and improve alerts 2026-04-12 14:00:00 +02:00
loki Pass Grafana env vars to Caddy container, fix Loki compactor config 2026-03-27 13:53:56 +01:00
postgres Fix empty Caddy and pg_stat_statements panels in service-health dashboard 2026-04-05 16:02:23 +02:00
prometheus Reduce Prometheus scrape interval from 15s to 5s 2026-04-03 10:15:08 +01:00
promtail Fix journal health check and improve log collection 2026-04-12 15:00:00 +02:00
scripts Add infrastructure: Terraform, Docker Compose, BRouter, CD pipeline (#2) 2026-03-22 13:32:01 +01:00
terraform Harden SSH: disable passwords, forwarding, add keepalive 2026-03-29 22:32:30 +02:00
.env.example Add infrastructure: Terraform, Docker Compose, BRouter, CD pipeline (#2) 2026-03-22 13:32:01 +01:00
Caddyfile Allow Planner to connect to Journal in CSP 2026-03-27 21:34:41 +01:00
docker-compose.yml Fix journal health check and improve log collection 2026-04-12 15:00:00 +02:00
secrets.app.env Update Sentry auth token with org:ci scope 2026-04-13 02:27:53 +02:00
secrets.infra.env Add GRAFANA_SERVICE_TOKEN to encrypted infra secrets 2026-03-29 19:49:29 +02:00