-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
K6_OTEL_EXPORTER_TYPE=http overrides K6_OTEL_GRPC_EXPORTER_ENDPOINT=prometheus:9090 #4070
Comments
Played with it a bit more and have to say this gives funny outcome:
Setting insecure exporter overrides exporter URL and protocol? Yup, works as documented below: changes my protocol and exporter to the default :D
|
Hi @agilob I'm not quite sure if I'm getting, what do you try to achieve by mixing HTTP ( Do you expect to work both exporters at the same time? 🤔 |
Please ignore the comment it's just as an addition to show more bugs in the configuration of otel exporters. After reporting the bug I played more with other flags to find more inconsistencies/bugs. The comment only shows that despite using http collector, k6 will configure url and secure port of grpc collector. The first comment/post is the meaningful one. I think this whole piece of code that configures otel collector type, path, port, secure port should be rewritten as currently it is mostly incorrect (secure grpc url and port is selected despite explicitly configuring |
I think this is tied to grafana/xk6-output-opentelemetry#25 as I have pointed out in the issue with some of the other OTEL configurations. The current approach to the overall OTEL configuration is unpredictable and in most cases clashes with the intended functionality leading to discrepancies. You should report your findings for the issue so when it is picked up all the relevant problems could be addressed. |
I'm still having a hard time to understand why where the bug is 🤔 When we provide the configuration like in example (mixing gRPC and HTTP), we still need to decide what is meaningful. And currently, it's
So in theory, nicer UX will probably tell user that, |
Brief summary
Prometheus in version 2.54 has OTEL on http not GRPC, so to use it I'm using the following script command:
k6 version
v0.55.0
OS
linux
Docker version and image (if applicable)
No response
Steps to reproduce the problem
but the script fails because defining
K6_OTEL_EXPORTER_TYPE
overrides myK6_OTEL_GRPC_EXPORTER_ENDPOINT
:Expected behaviour
.
Actual behaviour
But when I remove
K6_OTEL_EXPORTER_TYPE
, my exporter URL is correct, but obviously won't work:Now, the url is correct, but protocol isn't.
On top of it, If I add
https://
to the exporter URL, it starts producing #4060 :The text was updated successfully, but these errors were encountered: