Skip to main content
Version: 2.0

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).

MethodPathReturns
GET/api/v1/services/metricsPer ingress: requests/s, 5xx %, availability, p50 and p99 in ms.
GET/api/v1/endpoints/slowestThe ten slowest ingress rule paths by p99.
GET/api/v1/endpoints/erroringThe ten rule paths with the most 5xx per second.
GET/healthzHealth check.

Routes are ingress rule paths (the path label), not individual URLs. Per-URL figures need tracing.

Configuration​

VariableDefaultDescription
PROMETHEUS_URLhttp://localhost:9090Prometheus.
JWT_SECRET or AUTH_JWT_ACCESS_SECRET(required)Validates tokens.
CORS_ALLOWED_ORIGINS—Browser origins allowed to call it directly.
PORT8101HTTP port.