-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
add the option to enable server reflection on otlp grpc receiver #4951
Comments
Please clarify the purpose of this feature. What does server reflection do? |
The biggest advantage is listing the resources a server provides. It allows a tool like grpccurl to be more user-friendly. We'd likely not have this enabled in production, but I can see how this can help debug connectivity and configuration issues. |
I'm trying to write a tool that sends messages directly to opentelemetry collector and I receive this when sending messages via your proto service definition:
The very next thing I did to understand what the collector is looking for was to reach for
I still do not know what's wrong. Here is how I'm running otel:
Not supporting reflection at all is quite hostile to those integrating with the collector. I actually thought the missing reflection was a bug! |
Why is this not supported? Would love to be able to grpcurl this thing without it being a huge pain |
If that can be of any interest as a workaround, I am using grpcui -plaintext -import-path /path/to/opentelemetry-proto/ -proto /path/to/opentelemetry-proto/opentelemetry/proto/collector/metrics/v1/metrics_service.proto 127.0.0.1:{your_otlp_grpc_port} Then I can craft my export metrics test queries from a web ui. As a side note, the reflection would be nice to have tho... |
@brandtkilian, would you be able to share the example export metrics test queries? I'm getting a |
For the other Googlers who will passe around this issue, here is an example of metric export using grpcurl (using the provided metric example) You need to download proto repo and then: cat payload.json | \
grpcurl \
--plaintext \
-d @ \
-proto protos/opentelemetry/proto/collector/metrics/v1/metrics_service.proto \
-import-path protos\
-vv \
<ip_or_host>:4317 \
opentelemetry.proto.collector.metrics.v1.MetricsService/Export Output example:
|
Describe the solution you'd like
a configuration to enable server reflection on the grpc otlp receiver something like the following:
Describe alternatives you've considered
thought about adding a new receiver plugin but seems like the better solution is to add the functionality to the default one
id be happy to implement this one myself and submit a PR
The text was updated successfully, but these errors were encountered: