The Grafbase Enterprise Platform control plane emits OpenTelemetry metrics. This is configured through the standard OpenTelemetry environment variables, in particular OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_SERVICE_NAME.

This mechanism is in place starting with version 0.6.5 of the api and telemetry-sink docker images.

The API and the HTTP listener of the telemetry sink both expose the HTTP metrics defined in OTEL semantic conventions.

The gRPC listener of the telemetry sink exposes the following metrics:

Metric NameTypeDescriptionLabels
grpc_server_startedCounterTotal number of RPCs started on the servergrpc_service, grpc_method
grpc_server_handledCounterTotal number of RPCs completed on the servergrpc_service, grpc_method, grpc_code
grpc_server_handling_duration_secondsHistogramRPC call duration in secondsgrpc_service, grpc_method, grpc_code
grpc_server_active_requestsUpDownCounterCurrent number of active server requestsgrpc_service, grpc_method

Request duration is tracked with the following bucket boundaries (in seconds): 0.001, 0.005, 0.01, 0.015, 0.020, 0.025, 0.50, 0.75, 1.0, 2.0

  • grpc_service: The gRPC service name (extracted from request path).
  • grpc_method: The gRPC method name (extracted from request path).
  • grpc_code: The gRPC response status code (e.g., Ok, Unknown, etc.) - only on completed requests.