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 |
OTLP metrics emitted by the supervisor now use meaningful IDs so a user could backtrack from a metric to the supervisor that sent it. For dedicated supervisor this is `SupervisorHello.instance_id` while for shared supervisor this is `HostHello.instance_id`. Signed-off-by: Eitan Geiger <egeiger@redhat.com>
Use one OTLP metrics configuration for the gateway and supervisors and derive supervisor instance IDs from stable sandbox or pool identities. Mark assignment-stream collector settings secret. Remove the policy label, duplicate telemetry fields, and unused exemplar context capture. Signed-off-by: Eitan Geiger <egeiger@redhat.com>
Keep supervisor collector settings alongside pool capacity controls, and verify both upstream connection refusal and HTTP transport closure in request tracing tests. Signed-off-by: Eitan Geiger <egeiger@redhat.com>
|
@krishicks Thank you so much for the review! I marked it as draft because I knew it wasn't ready yet, but since you gave it, I think we're now in a much better state. I believe everything is fixed. Initially went with other identifiers for supervisor, yours made more sense, changed accordingly. Will create a new issue for exemplars. Dropped policy for now, I'll try and come up with a better mechanism and have a separate issue for that as well if I'll find a solution. |
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