-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OTLP metrics exporter get 404 response from collector #297
Comments
Thank you for contacting us @CSGkeramidas. This bug could be a duplicate of #291 As a workaround while it is fixed, could you check whether providing the |
Also please try providing the OTEL_EXPORTER_OTLP_PROTOCOL value if the above does not work. |
Here's a config that works for me: OTel Collector config: receivers:
otlp:
protocols:
http:
grpc:
exporters:
logging:
verbosity: detailed
service:
pipelines:
traces:
receivers: [otlp]
exporters: [logging]
metrics:
receivers: [otlp]
exporters: [logging] Beyla:
And once my application got a request, I saw traces being received:
|
I believe traces work for @CSGkeramidas, but not metrics export. |
Hi @CSGkeramidas, can you please confirm that you have correctly configured the service:
pipelines:
metrics: section? I took @jpkrohling's example above and I removed the metrics section from the pipelines. I immediately got:
|
You are correct. I have forgotten to declare the otlp on the metrics pipeline. |
When beyla is configured to send data to a collector otlp endpoint, the metrics endpoint responds with 404.
I believe this is due to the fact that beyla does not set the correct headers when sending the metrics to collector.
You can find a similar case here: open-telemetry/opentelemetry-collector#3540
The text was updated successfully, but these errors were encountered: