Skip to content
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

Clickhouse Plugin : Support to show Loki logs corresponding for traces in clickhouse #808

Closed
shivtej-opsverse opened this issue Apr 22, 2024 · 3 comments

Comments

@shivtej-opsverse
Copy link

What happened:

I am using Grafana:10.4.0.
I send my application traces to clickhouse via the opentelemetry clickhouse exporter and use Loki with s3 as storage for Logs.
I have added both these datasources into Grafana.
Whenever I see a trace there is an option to show logs related to that particular trace this however redirects to the same clickhouse datasource saying To enable data linking, enter your default logs configuration in your ClickHouse Data Source settings

What you expected to happen:

configure this logs configuration so that it will redirect to Loki the datasource instead?

How to reproduce it (as minimally and precisely as possible):

  1. Prerequisite your logs should be going to loki and the traces should be going to clickhouse. Both these datasources should be added in Grafana.
  2. Go to the explore section of Grafana select clickhouse datasource and view any trace.
  3. Click on the hyperlink on the trace which says Show Logs it will give the above mentioned error.

Environment:

  • Grafana version: 10.4.0
  • Plugin version: 4.0.6
  • OS Grafana is installed on: Linux amd64
  • User OS & Browser: macOS and chrome
@bossinc
Copy link
Collaborator

bossinc commented May 6, 2024

Currently, the CH plugin can only show logs from the same CH plugin. I am relabeling this as a feature request.

@bossinc bossinc added enhancement New feature or request and removed type/bug Something isn't working labels May 6, 2024
@bossinc bossinc moved this from Incoming to Feature Requests in Partner Datasources May 6, 2024
@SpencerTorres
Copy link
Collaborator

You can try using correlations. This should work for explore view, but for dashboard view you can use variables with manually added data links.

Let me know if this works for you

@SpencerTorres
Copy link
Collaborator

I've had time to test correlations myself, and it indeed works well for linking different data sources. If you have trouble using this feature feel free to open a new issue with those details. Thanks!

@github-project-automation github-project-automation bot moved this from Feature Requests to Done in Partner Datasources Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

4 participants