Skip to content

Logs are not sent to loki without labels #19459

Answered by dbazhal
dbazhal asked this question in Q&A
Discussion options

You must be logged in to vote

Oh, thank you, sorry for disturbing, I figured it out, it turned out that I've been rendering label values empty because of using helm and my

labels:
  a: "{{ a }}

turned into "function does not exist"
and

labels:
  a: "{{ .a }}

turned into empty label value.
Made it with

labels:
  a: "{{ `{{ a }}` }}"

Now it all works.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by dbazhal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: bug A code related bug.
2 participants
Converted from issue

This discussion was converted from issue #19458 on December 22, 2023 23:27.