Repository navigation
Conversation
Count connection admissions at the final decision, including the middleware gate for SQL passthrough. Bound policy-name labels and distinguish quarantine denials from requests that matched no policy. Measure policy evaluation and direct or proxied dials separately, with sub-millisecond buckets for local work. Expose active proxied connections by inspection type and classify upstream proxy authentication failures as connect errors. Signed-off-by: Eitan Geiger <egeiger@redhat.com>
Record one final admission per inspected HTTP request or WebSocket text message. An enforced denial takes precedence over fail-open, which takes precedence over audit. Time inspection up to forwarding or a terminal result, excluding destination lookup and dial time. Classify a failed forward dial as an error or timeout and malformed WebSocket messages as inspection errors. Signed-off-by: Eitan Geiger <egeiger@redhat.com>
Add an opt-in supervisor_metrics collector to gateway TOML. Inherit the base OTLP collector settings when the table omits an endpoint, or use the table's collector settings when it specifies one. Pass endpoints through supervisor launch settings and credentials through the trusted auth bundle. Send equivalent settings to shared supervisors on the authenticated assignment stream and omit the credential-bearing payload from debug formatting. Signed-off-by: Eitan Geiger <egeiger@redhat.com>
Start an OTLP metrics provider in each configured supervisor runtime. Attach the gateway name and a per-process instance ID as resource attributes for grouping metrics by gateway and supervisor. Register the network instruments and report sandbox assignments with a gauge. Clear the assignment count before flushing on shutdown. Document the gateway opt-in, metric catalog, and admission semantics. Signed-off-by: Eitan Geiger <egeiger@redhat.com>
Config: please drop Supervisor identity:
The same supervisor then keeps the same ID after a restart, and the ID can be traced back to what the gateway reports. Dedicated supervisors' metrics should also carry Exemplars: none are produced. Collector credentials on the assignment stream:
That makes Shared vocabulary: the PR adds new fields instead of reusing existing ones. Inspected request spans now carry |
Summary
Add opt-in OTLP export for supervisor egress metrics. Operators can alert on denial rates, see which stage is adding latency, and track load across dedicated and shared supervisors
Related Issue
closes #5364
Changes
resultvocabulary and include sub-millisecond buckets.Release Notes
Set
enabled = trueunder[openshell.gateway.otlp.supervisor_metrics]to export supervisor metrics. The table can use its own collector or inherit the gateway’s shared OTLP collector settings.Testing
Checklist