Skip to content
Discussion options

You must be logged in to vote

adding a literal prefix changes the actual label value

Yes that is correct. The idea behind this new mechanism is that by gating your level template by using something like: level: lvl-{{ level }}, there is no way that the whole field can be overwritten, only something after lvl- - and not alter level completely. This was done to prevent data coming in from potentially untrusted sources from completely altering a field.

For now, the only backwards-compatible option seems to be:

dangerously_allow_unconfined_template_resolution: true

but I wanted to confirm whether this is the intended approach for Loki labels or whether a better migration path exists.

Our recommendation is to prefix te…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Xyaren
Comment options

Answer selected by thomasqueirozb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
sink: loki Anything `loki` sink related
2 participants