trails/infrastructure
Ullrich Schäfer 62e208d850
Add Prometheus metrics + Grafana panels for Overpass proxy
Adds four metrics surfaced via the existing /metrics endpoint:
- overpass_cache_events_total{result=hit|miss|coalesced}
- overpass_cache_size (gauge)
- overpass_upstream_duration_seconds (histogram)
- overpass_upstream_requests_total{status} — covers 2xx/4xx/5xx and
  an explicit "error" label for network-level failures

Grafana dashboards/planner.json gets a new row:
- Upstream health (5m 2xx success ratio, red <90%, green >99%)
- Cache hit ratio
- Cache size
- Upstream p95 latency
Plus timeseries panels for cache event breakdown, upstream status
over time, and p50/p95/p99 upstream latency.

The success-rate formula uses clamp_min(..., 1) on the denominator so
it doesn't NaN when traffic is zero.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 02:12:19 +02:00
..
grafana Add Prometheus metrics + Grafana panels for Overpass proxy 2026-04-18 02:12:19 +02:00
loki Pass Grafana env vars to Caddy container, fix Loki compactor config 2026-03-27 13:53:56 +01:00
postgres Add pg-boss background job queue with session expiry 2026-04-13 21:17:24 +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 Route Overpass through server-side proxy with cache + coalescing 2026-04-18 02:04:50 +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