How to persist custom derived fields at Loki data source?

Hi, have any way to persist custom derived fields at the Loki data source? I can add then there and test, but the Loki data source is builtin and didn’t have the save button at the interface.

Best,

Hello! The only derived field currently supported in Grafana Cloud is “traceID” for associating tracing service data. Custom derived fields for the provisioned Loki datasource as well as custom tags for the provisioned Tempo datasource will be supported in the future although there is no current timeframe available.

Oh, bad news! This feature will be appreciated a lot to use Loki at the production environment.

Thanks!

1 Like

Definitely agree, it is being worked on!

If you’re already running a local Loki environment, then as a temporary workaround you could add your Loki datasource with your customizations and visualize/query the data in Grafana Cloud Visualize Existing Data | Grafana Labs

It is only the provisioned Loki datasource that cannot be modified at the moment, since it is managed by Grafana Cloud.

Hello! Is there any update on this? We were excited to move to Graphana Cloud away from self-managed, but disappointed to find the first-party cloud offering lacks features available when self-hosted.

It apparently still does not work, neither does modifying the existing regex for the TraceId to do something else, i.e. parse quotes if the the format is json (the opentelemetry contrib exporter prefers json as the body format) and then the default regex does not work.

1 Like