Support otel metrics exporter

Resolved 💬 4 comments Opened Jan 31, 2026 by amit-mittal Closed Aug 4, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

Similar to otel logs and tracing, can we support configuring metrics exporter that we can use to gather internal usage metrics of codex CLI?

Additional information

I tried the below configuration, but doesn't seem to be working:

[otel]
metrics_exporter = { otlp-grpc = {
  endpoint = "http://localhost:18234"
}}

The similar configuration works for traces and logs.

View original on GitHub ↗

4 Comments

amit-mittal · 6 months ago

@etraut-openai I see you added enterprise tag to this ticket. We are already paying for OpenAI Enterprise. Is that something that is already supported or visible in the platform?

etraut-openai contributor · 6 months ago

@amit-mittal, we use tags to help us sort, prioritize and track feature requests.

amit-mittal · 3 months ago

@etraut-openai I saw mention of otel.metrics_exporter in the Codex's configuration reference, but there were no further details anywhere. Do you know if this is supported now?

etraut-openai contributor · 24 days ago

OTLP HTTP metrics export is implemented through otel.metrics_exporter.