APM Gateway
Service: apm-gateway · Port: 8101 · Access: platform staff (super_admin) only
apm-gateway serves platform-wide request figures from ingress-nginx's metrics: traffic, latency and server errors for every ingress, and the slowest and most failing routes. Apps need no instrumentation. It stores nothing.
Tenants' APM for their own apps comes from kubeopera-api (/cloudspaces/{id}/monitoring/apm/...), scoped to the tenant (see SLOs and APM for your apps).
REST API
All routes under /api/v1 need a super_admin token. Each takes ?namespace= (an exported namespace) and ?window=5m|1h|6h|24h (default 5m).
| Method | Path | Returns |
|---|---|---|
GET | /api/v1/services/metrics | Per ingress: requests/s, 5xx %, availability, p50 and p99 in ms. |
GET | /api/v1/endpoints/slowest | The ten slowest ingress rule paths by p99. |
GET | /api/v1/endpoints/erroring | The ten rule paths with the most 5xx per second. |
GET | /healthz | Health check. |
Routes are ingress rule paths (the path label), not individual URLs. Per-URL figures need tracing.
Configuration
| Variable | Default | Description |
|---|---|---|
PROMETHEUS_URL | http://localhost:9090 | Prometheus. |
JWT_SECRET or AUTH_JWT_ACCESS_SECRET | (required) | Validates tokens. |
CORS_ALLOWED_ORIGINS | — | Browser origins allowed to call it directly. |
PORT | 8101 | HTTP port. |