mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 19:38:46 -05:00
[GH-ISSUE #16183] issue: OTEL Metrics export not working with http protocol #33347
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JARZcorp on GitHub (Jul 31, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16183
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.18
Ollama Version (if applicable)
No response
Operating System
Ubuntu
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When setting ENABLE_OTEL_METRICS to true, Metrics should be exported to the given OTLP Endpoint. By default the grpc protocol is used. If I set OTEL_OTLP_SPAN_EXPORTER to http the Traces as well as Metrics should be exported via http.
Actual Behavior
Steps to Reproduce
Set the following env variables in OW 0.6.18:
ENABLE_OTEL = true
OTEL_EXPORTER_OTLP_ENDPOINT = your endpoint
ENABLE_OTEL_METRICS = true
OTEL_EXPORTER_OTLP_INSECURE = true
OTEL_OTLP_SPAN_EXPORTER = http
OTEL_EXPORTER_OTLP_PROTOCOL = http/protobuf (just to be 100% sure that http is used, not sure if needed)
OTEL_BASIC_AUTH_USERNAME = xx
OTEL_BASIC_AUTH_PASSWORD = xx
Logs & Screenshots
2025-07-31T11:47:02.3027495Z stdout F 2025-07-31 11:47:02.302 | WARNING | opentelemetry.exporter.otlp.proto.grpc.exporter:_export:328 - Transient error StatusCode.UNAVAILABLE encountered while exporting metrics to otlp-gateway-prod-eu-north-0.grafana.net, retrying in 2s. - {}
2025-07-31T11:47:04.3035723Z stdout F 2025-07-31 11:47:04.303 | WARNING | opentelemetry.exporter.otlp.proto.grpc.exporter:_export:328 - Transient error StatusCode.UNAVAILABLE encountered while exporting metrics to otlp-gateway-prod-eu-north-0.grafana.net, retrying in 4s. - {}
2025-07-31T11:47:08.3044032Z stdout F 2025-07-31 11:47:08.304 | WARNING | opentelemetry.exporter.otlp.proto.grpc.exporter:_export:328 - Transient error StatusCode.UNAVAILABLE encountered while exporting metrics to otlp-gateway-prod-eu-north-0.grafana.net, retrying in 8s. - {}
2025-07-31T11:47:16.3052524Z stdout F 2025-07-31 11:47:16.304 | WARNING | opentelemetry.exporter.otlp.proto.grpc.exporter:_export:328 - Transient error StatusCode.UNAVAILABLE encountered while exporting metrics to otlp-gateway-prod-eu-north-0.grafana.net, retrying in 16s. - {}
2025-07-31T11:47:22.3839667Z stdout F 2025-07-31 11:47:22.383 | WARNING |
Additional Information
Besides the bug that http is not working for OTEL metrics. Would it be possible/make sense to have two different OTEL ENDPOINT env variables, one for traces and one for metrics?
@JARZcorp commented on GitHub (Aug 11, 2025):
Thanks for fixing it so fast, great job!