-
Notifications
You must be signed in to change notification settings - Fork 521
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
Querying from grafana doesn't work with TLS #3278
Comments
I believe this is a known issue. The GRPC streaming endpoint is incompatible with TLS: https://grafana.com/docs/tempo/latest/api_docs/#tempo-grpc-api I'm working on a PR now to fix this that should be in 2.4. |
Thank you. Edit: missed that its not compatible with tls |
@joe-elliott, should this issue be fixed by now? I'm using a Tempo container from this recent commit and I'm still experiencing these TLS issues with Grafana 11.2.0. |
It should be fixed. This test starts up Tempo with TLS configured and exercises both the HTTP and GRPC query endpoints: https://github.com/grafana/tempo/blob/main/integration/e2e/https_test.go#L27 |
@joe-elliott, hmm. I'm still experiencing this issue when using Grafana + Tempo with mTLS (i.e. certs for both the Grafana client & Tempo server). Does anything about that setup sound problematic to you? If I upload a docker-compose minimal reproducer, could you take a look? |
Describe the bug
Setting up tls on both http and grpc causes grafana to receive "Query error" when searching for spans.
I have followed the guide at https://grafana.com/docs/tempo/latest/configuration/tls/#client-configuration
It says to add querier.query-frontend.grpc_client_config however, that doesn't seem to exist but I found that there is a querier.frontend_worker.grpc_client_config which doesn't exist in the docs. Are they the same?
Everything else seems to work fine and I get messages these, so the ingestion seems to work fine.
level=info ts=2024-01-10T12:33:28.488848715Z caller=distributor.go:616 msg=received spanid=af253cd234c97243 traceid=b0a34725613194d4a3868db54c33492b
I do not get any errors at all in the logs in tempo but in grafana I see:
logger=data-proxy-log userId=1 orgId=1 uname=admin path=/api/datasources/proxy/uid/f64be1ec-e7c5-4824-addc-51f922c2477a/api/search remote_addr=::ffff:172.16.1.0 referer="https://grafana.app.local/explore?left=%7B%22datasource%22:%22f64be1ec-e7c5-4824-addc-51f922c2477a%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22datasource%22:%7B%22type%22:%22tempo%22,%22uid%22:%22f64be1ec-e7c5-4824-addc-51f922c2477a%22%7D,%22queryType%22:%22nativeSearch%22,%22limit%22:20%7D%5D,%22range%22:%7B%22from%22:%22now-12h%22,%22to%22:%22now%22%7D%7D&orgId=1" traceID=58b728656a8c1bc4a2d1d79b3928bb5d t=2024-01-10T12:53:30.495083622Z level=error msg="Proxy request failed" err="read tcp 172.16.1.72:56580->172.17.228.229:3200: read: connection reset by peer"
To Reproduce
Run grafana/tempo:2.3.1 container with the following config:
Expected behavior
Tempo should return the traces available and when not working, it should log the error
Environment:
The text was updated successfully, but these errors were encountered: