Metrics Latest

Reference for all Prometheus metrics exposed by the HTTP Add-on

Suggest a change

The interceptor exposes metrics via OpenTelemetry, with a Prometheus-compatible endpoint enabled by default.

Endpoint configuration

SettingDefaultDescription
Port2223Configurable via OTEL_PROM_EXPORTER_PORT.
Path/metricsStandard Prometheus scrape path.
EnabledtrueConfigurable via OTEL_PROM_EXPORTER_ENABLED.

The interceptor also supports OTLP metric export. See Environment Variables for configuration.

Metrics

Request count

Prometheus nameinterceptor_request_count_total
OTel instrument nameinterceptor.request.count
TypeCounter
DescriptionTotal requests processed by the interceptor proxy.

Labels:

LabelDescription
codeHTTP response status code (integer).
methodHTTP request method. Non-standard methods are normalized to _OTHER (see Method normalization).
route_nameName of the matched InterceptorRoute or HTTPScaledObject.
route_namespaceNamespace of the matched route resource.

Request concurrency

Prometheus nameinterceptor_request_concurrency
OTel instrument nameinterceptor.request.concurrency
TypeUpDownCounter (gauge)
DescriptionRequests currently in-flight at the interceptor proxy.

Labels:

LabelDescription
route_nameName of the matched InterceptorRoute or HTTPScaledObject.
route_namespaceNamespace of the matched route resource.

Request duration

Prometheus nameinterceptor_request_duration_seconds
OTel instrument nameinterceptor.request.duration
TypeHistogram
UnitSeconds
DescriptionTime from request received to response written.

Bucket boundaries: 0.005, 0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5, 5, 7.5, 10 (following the OTel HTTP semantic conventions).

Labels:

LabelDescription
codeHTTP response status code (integer).
methodHTTP request method. Non-standard methods are normalized to _OTHER (see Method normalization).
route_nameName of the matched InterceptorRoute or HTTPScaledObject.
route_namespaceNamespace of the matched route resource.

Method normalization

The method label accepts the following standard HTTP methods without modification:

CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE

All other method values are replaced with _OTHER to prevent unbounded label cardinality.