Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Handling of Loki Plugin Configuration #450

Open
a-b-v opened this issue Nov 19, 2024 · 0 comments
Open

Incorrect Handling of Loki Plugin Configuration #450

a-b-v opened this issue Nov 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@a-b-v
Copy link

a-b-v commented Nov 19, 2024

Describe the bug

The Loki plugin supports using a label section as described here https://github.com/grafana/loki/blob/main/docs/sources/send-data/fluentd/_index.md#adding-labels:

<match mytag>
  @type loki
  # ...
  <label>
    container $.kubernetes.container
  </label>
  # ...
</match>

However, the reloader throws the following error when processing this configuration:

level=info msg="Configuration for namespace kfo-loki-test cannot be validated: bad label name  for <label>, must start with @"

Reproduction steps

  1. Create a kfo configmap that uses the Loki plugin and includes a section as described.
  2. Observe reloader Logs

Expected behavior

The reloader should correctly process the section without throwing errors.

Additional context

No response

@a-b-v a-b-v added the bug Something isn't working label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant