signoz icon indicating copy to clipboard operation
signoz copied to clipboard

Access gRPC port using Traefik

Open rinshadka opened this issue 4 years ago • 5 comments

Install signoz in docker and while sending the trace data to signoz gRPC port directly its working perfectly.

But if we route the request via traefik, its not working. I have tried with setting up GRPC endpoint and defined backend using h2c schema.

Please support, Thanks.

rinshadka avatar Feb 02 '22 10:02 rinshadka

hey @rinshadka Thanks for opening the issue.

Curious to learn, what's the use case for trying to send the route request via traefik. Can you share more details on what are you trying to achieve

pranay01 avatar Feb 02 '22 11:02 pranay01

@pranay01, We have deployed Signoz in a remote server and we only have 80,443 port access to that server and those ports are using by Traefik reverse proxy. So we use Traefik rules to route requests to each container services. We have achieved routing all the requests toOTEL HTTP collectorvia Traefik. But in the case of OTEL gRPC collector we are unable to route the requests to it.

rinshadka avatar Mar 11 '22 14:03 rinshadka

@rinshadka You would have to use h2c protocol or http2 with Traefik for gRPC.

You can refer to this guide: https://doc.traefik.io/traefik/user-guides/grpc/

prashant-shahi avatar Mar 11 '22 16:03 prashant-shahi

@prashant-shahi I have already tried h2c scheme as per the documentation provided from Traefik. I will install a fresh Traefik and try once more from the scratch.

rinshadka avatar Mar 23 '22 03:03 rinshadka

Hello,

@rinshadka did you solve your error? I met the same issue. In my test, I'm able to make it working with port-forwarding the service, port 4317. But if I declare an ingress which target this port, I have the following error.

13 INTERNAL: Received RST_STREAM with code 0

I also tried with h2c schema for Traefik but no change detected.

Tchoupinax avatar Jun 23 '22 17:06 Tchoupinax