Skip to main content
Available from version 1.325.0.
The Control Plane pushes its own OpenTelemetry signals to a collector you run: how many Sidecar handshakes it answers and how fast, how the session event ingest keeps up, how full its database pool is, and API latency per route. Set one variable to turn it on:
It is push only. Nothing scrapes the Control Plane, and it serves no /metrics endpoint. Alerts fire from the signals your collector receives, beside the Sidecar’s own. The transports are the same as the Sidecar telemetry block, so one collector serves both. The two tell themselves apart by service.name.

Configuration

The standard OpenTelemetry variables. Once OTEL_EXPORTER_OTLP_ENDPOINT is set, a malformed value in any of them stops startup. While it is unset, the others are not read. Spans are off until OTEL_TRACES_SAMPLER is set, unlike the OpenTelemetry default: a fleet of thousands of Sidecars handshakes about once a minute each, and every handshake would be a span. With the Helm chart, put the variables under config:
values.yaml

What every signal carries

The schema URL is https://hoop.dev/schemas/gateway-telemetry/1.0. An attribute or series added bumps the minor version. One renamed or removed bumps the major, because a dashboard written against the old name goes dark. This vocabulary is versioned apart from the Sidecar’s. No metric carries a Sidecar id, an organization id or a URL path: they are unbounded. The Sidecar and organization ids are on the spans.

Metrics

hoop.outcome on a handshake is the answer the Sidecar got: hoop.outcome on a session event batch: A handshake or a batch refused by authentication counts too: the signal sees the request before the credential is checked. Through a collector’s Prometheus exporter the names read hoop_gateway_sidecar_handshakes_total, hoop_gateway_sidecar_handshake_duration_seconds_bucket, hoop_gateway_db_connections_in_use, and the attributes hoop_outcome, http_route.

Traces

With OTEL_TRACES_SAMPLER set, each handshake is a sidecar handshake span and each batch a sidecar session events span, kind server. They carry hoop.outcome, http.response.status_code, hoop.sidecar.id and hoop.org.id once the credential is accepted, and hoop.session_events.count on a batch. A 5xx sets an error status. A request that carries a W3C traceparent joins the caller’s trace.

Alerts

In PromQL:
The two per-replica queries need service_instance_id as a label. The collector’s Prometheus exporter adds it with resource_to_telemetry_conversion: {enabled: true}, as in the Sidecar’s collector example. When the Control Plane is down it reports nothing. Its Sidecars do: hoop.sidecar.control_plane.handshakes counts each heartbeat by outcome from every Sidecar with a telemetry block, and goes on exporting while the Control Plane is gone. See OpenTelemetry for the Sidecar.

When the collector is down

Nothing changes for Sidecars or users. Exports fail and requests are unaffected. The Control Plane log gets one warning per 30 seconds per distinct failure, such as telemetry: metrics export failed: http 401 Unauthorized; the collector has the details. The warning names only the signal (metrics or traces) and the failure class: timeout, connection, http <code>, grpc <code> or export error. It never prints the endpoint URL or the collector’s answer, which can carry a key; the collector’s own log has the details. On shutdown the Control Plane flushes once, bounded by three seconds. A fatal startup error after the export starts flushes too, with the same bound, before the process exits.

Next

Environment Variables

Every other variable the Control Plane reads.

OpenTelemetry for the Sidecar

Statements per lane, verdicts, latency stages, and the Control Plane as each Sidecar sees it.