trails/apps/planner/app/routes
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
..
api.overpass.ts Add Prometheus metrics + Grafana panels for Overpass proxy 2026-04-18 02:12:19 +02:00
api.route.ts Add route error toasts with waypoint rollback 2026-03-29 14:09:20 +02:00
api.sessions.ts Sync notes through GPX, Journal, and Planner roundtrip 2026-04-11 03:35:40 +02:00
home.tsx Add legal pages, ToS acceptance, and alpha banner 2026-04-18 00:08:48 +02:00
new.tsx Add split export: Export Route vs Export Plan 2026-04-03 10:52:39 +01:00
session.$id.tsx Sync notes through GPX, Journal, and Planner roundtrip 2026-04-11 03:35:40 +02:00