Skip to content

feat(gateway): export metrics over OTLP - #5712

Open
aegeiger wants to merge 1 commit into
NVIDIA:mainfrom
aegeiger:aegeiger/feat/4489-gateway-metrics-oltp-push
Open

aegeiger wants to merge 1 commit into
NVIDIA:mainfrom
aegeiger:aegeiger/feat/4489-gateway-metrics-oltp-push

Conversation

@aegeiger

Copy link
Copy Markdown

Summary

Add an opt-in metrics signal that inherits shared OTLP collector settings and operates independently of the Prometheus scrape listener.

Fan out existing metrics to both sinks when enabled. Serialize OTLP gauge updates per series and give each gateway process a distinct resource identity.

Related Issue

Changes

  • Add opt-in gateway metrics export over OTLP. The metrics signal inherits the shared collector settings, including headers and TLS, and can use a dedicated gRPC or HTTP/protobuf endpoint.
  • Document the configuration and collector behavior.

Release Notes

Set enabled = true under [openshell.gateway.otlp.metrics] to send gateway metrics to an OTLP collector. Prometheus scraping can run alongside it.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Add an opt-in metrics signal that inherits shared OTLP collector
settings and operates independently of the Prometheus scrape listener.

Fan out existing metrics to both sinks when enabled. Serialize OTLP
gauge updates per series and give each gateway process a distinct
resource identity. The recorder follows the registry and gauge locking
approach in NVIDIA#4590.

Signed-off-by: Eitan Geiger <egeiger@redhat.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

All contributors have signed the DCO ✍️ ✅
Posted by the DCO Assistant Lite bot.

@aegeiger

Copy link
Copy Markdown
Author

I have read the DCO document and I hereby sign the DCO.

@TaylorMutch

Copy link
Copy Markdown
Collaborator

@aegeiger Please link the issue this PR closes in the Related Issue section using Closes #<issue-number> so GitHub closes it automatically when this merges. The linked issue also needs the state:accepted label under the contribution rules.

@TaylorMutch TaylorMutch self-assigned this Nov 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants