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

feat(loki/src/k8s): not restart tailers in loki.source.kubernetes component by above-average time deltas if K8s version is > 1.29.0 #6263

Merged

Conversation

hainenber
Copy link
Contributor

PR Description

Detect K8s version to decide whether to kick off goroutine to restart tailers by above-average deltas. Helps decreasing extraneous logs and might be a tiny bit of performance.

Which issue(s) this PR fixes

Fixes grafana/alloy#264

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated

@hainenber hainenber changed the title feat(loki/src/k8s): not restart tailers in loki.source.kubernetes component by above-average time deltas if K8s version is >= 1.29.1 feat(loki/src/k8s): not restart tailers in loki.source.kubernetes component by above-average time deltas if K8s version is >= 1.29.0 Feb 5, 2024
@hainenber hainenber changed the title feat(loki/src/k8s): not restart tailers in loki.source.kubernetes component by above-average time deltas if K8s version is >= 1.29.0 feat(loki/src/k8s): not restart tailers in loki.source.kubernetes component by above-average time deltas if K8s version is > 1.29.0 Feb 15, 2024
Copy link
Member

@rfratto rfratto left a comment

Choose a reason for hiding this comment

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

Sorry this one got lost! LGTM, if you have time to fix the merge conflicts let me know, otherwise I'll push a commit to fix them once I get a chance.

…omponent by above-average time deltas if K8s version is >= 1.29.1

Signed-off-by: hainenber <dotronghai96@gmail.com>
…g verbosity when fail to restart tailer

Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
@hainenber hainenber force-pushed the not-restart-tailers-for-k8s-v1.29.1+ branch from 50fc778 to 6abb1c3 Compare March 19, 2024 15:17
@hainenber
Copy link
Contributor Author

I've resolved the merge conflict :D

@rfratto rfratto added variant/flow Relatd to Grafana Agent Flow. enhancement New feature or request labels Apr 9, 2024
tpaschalis and others added 2 commits April 18, 2024 13:06
Signed-off-by: Paschalis Tsilias <paschalist0@gmail.com>
Copy link
Member

@tpaschalis tpaschalis left a comment

Choose a reason for hiding this comment

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

Sorry that this one slipped through the cracks @hainenber! I've taken the liberty to fix merge conflicts so we can merge and cherry-pick over to the Alloy repo.

Again, thank you!

@tpaschalis tpaschalis merged commit a34ca07 into grafana:main Apr 18, 2024
10 checks passed
@hainenber hainenber deleted the not-restart-tailers-for-k8s-v1.29.1+ branch April 18, 2024 10:21
@github-actions github-actions bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label May 19, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. variant/flow Relatd to Grafana Agent Flow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[loki.source.kubernetes] decrease logLevel of log msg
3 participants