quickwit-oss / quickwit-datasource

Quickwit data source for Grafana
GNU Affero General Public License v3.0
41 stars 10 forks source link

Correlate logs to traces #34

Closed fmassot closed 8 months ago

fmassot commented 9 months ago

The elasticsearch plugin allows to define how to link a log to a trace. See the datalinks config part.

We should be able to have the same feature and provide this dataLinks configuration.

Here is a config example coming from the doc:

      dataLinks:
        - datasourceUid: my_jaeger_uid # Target UID needs to be known
          field: traceID
          url: '$${__value.raw}' # Careful about the double "$$" because of env var expansion

To test the setup, we need 2 datasources: one quickwit datasource for the logs and one jaeger datasource for traces.

idrissneumann commented 9 months ago

We need to be able to add the datalink graphically as the elastic datasource

Screenshot 2023-12-01 at 15 18 13 Screenshot 2023-12-01 at 15 11 53
idrissneumann commented 8 months ago

Pull request's ready here: https://github.com/quickwit-oss/quickwit-datasource/pull/35