Skip to content

feat: add node filtering to loki.source.podlogs #4022

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

QuentinBisson
Copy link
Contributor

PR Description

Added node filtering capability to loki.source.podlogs component - introduces a new node_filter configuration block that enables filtering pod discovery to only pods running on a specified node, significantly reducing Kubernetes API server load and preventing duplicate log collection in DaemonSet deployments.

The feature uses Kubernetes field selectors (spec.nodeName) for efficient API-level filtering and supports automatic node detection via the NODE_NAME environment variable, making it ideal for restart-heavy environments with spot instances.

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@QuentinBisson QuentinBisson requested review from clayton-cornell and a team as code owners July 22, 2025 13:03
@clayton-cornell clayton-cornell requested a review from a team July 22, 2025 14:51
@clayton-cornell
Copy link
Contributor

Docs look OK to me. Over to the dev team for code review.

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.

2 participants