feat: add opt-in dataplane format#596
feat: add opt-in dataplane format#596github-vincent-miszczak wants to merge 1 commit intoVictoriaMetrics:mainfrom
Conversation
46386d1 to
e49b2ea
Compare
|
@github-vincent-miszczak Thanks for contributing! I didn't understand how it could help with the correlations. I'm just tried to set up a correlation but instead of |
|
@github-vincent-miszczak Could you please sign your commits? Here, you can find a guide on how to do it. |
|
@github-vincent-miszczak What I suggest: the plugin reads the correlation configs that the user has set up in Grafana, looks at which label field each correlation needs, pulls that value out of the log labels, and creates a clickable field for it — all at query time, automatically. So the user just creates a correlation in the Grafana UI (say, logs → Tempo with trace_id), and it works. No need to enable any toggles, no field renaming, no risk of breaking anything. To get the correlation configs at runtime, we use |



Add an opt-in setting and the corresponding UI toggle to enable logs dataplane format.
Using this format allows Grafana correlations to work correctly with label values.
Without it, it's not possible to craft links that use label values when using Grafana correlations.
It's opt-in because the fields are renamed, which may break client-side transformations.
Summary by cubic
Adds an opt-in setting to output logs in Grafana dataplane format, enabling automatic
${labelKey}variables in correlations. Default is off to avoid breaking transformations that referenceTime/Line.jsonData.useDataplaneFormat.Time→timestampandLine→body, and set frame meta toDataFrameType.LogLineswithtypeVersion [0,0]so${labelKey}works in correlations.Written for commit e49b2ea. Summary will update on new commits.