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

add option for loki output to configure "include_thread_label" #1168

Merged
merged 3 commits into from
Feb 1, 2023

Conversation

eljohnson92
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
API breaks? no
Deprecations? no
Related tickets
License Apache 2.0

What's in this PR?

This exposes the include_thread_label option added in 1.2.19 of the fluent-loki plugin

Why?

When using more than 1 flush_thread_count the associated thread is added as a label to each log line. This is unnecessary in some use cases and increases the cardinality of labels.

Additional context

This requires 1.2.19 of the fluent-plugin-grafana-loki and the current image ghcr.io/banzaicloud/fluentd:v1.14.6-alpine-6 only has version 1.2.18. It wasn't clear to me how this image gets updated, but since the gem version is not pinned in the Dockerfile I believe a new build of the image should pull in this new plugin version. Let me know if there is something additional that needs to be done as part of this PR.

Checklist

To Do

@CLAassistant
Copy link

CLAassistant commented Jan 22, 2023

CLA assistant check
All committers have signed the CLA.

@ahma ahma requested review from ahma and siliconbrain February 1, 2023 07:10
Copy link
Contributor

@ahma ahma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM Thanks @eljohnson92

@ahma ahma merged commit 637fefe into kube-logging:master Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants