Skip to content

fix: preserve meta labels in loki.source.podlogs#5097

Merged
kalleep merged 1 commit intomainfrom
kalleep/fix-loki-source-podlogs-meta-labels
Dec 16, 2025
Merged

fix: preserve meta labels in loki.source.podlogs#5097
kalleep merged 1 commit intomainfrom
kalleep/fix-loki-source-podlogs-meta-labels

Conversation

@kalleep
Copy link
Contributor

@kalleep kalleep commented Dec 15, 2025

PR Description

In #4606 the intention was to add a config option for loki.source.podlogs to preserve meta labels to that they could be used in other components.

This do not work because the tailer was stripping all public labels (__). So we need to propagate this setting and handle it correctly.

Which issue(s) this PR fixes

Fixes #5081

Notes to the Reviewer

PR Checklist

  • Documentation added
  • Tests updated
  • Config converters updated

BEGIN_COMMIT_OVERRIDE
fix: Preserve meta labels in loki.source.podlogs (#5097)
END_COMMIT_OVERRIDE

@kalleep kalleep requested a review from a team as a code owner December 15, 2025 14:21
@kalleep
Copy link
Contributor Author

kalleep commented Dec 15, 2025

FYI @QuentinBisson

@QuentinBisson
Copy link
Contributor

Oh I did not see this one at all, thank you

@kalleep
Copy link
Contributor Author

kalleep commented Dec 15, 2025

Oh I did not see this one at all, thank you

No worries I did not see that either. Just wanted to let you know :)

@kalleep kalleep added the backport/v1.12 Backport to release/v1.12 label Dec 15, 2025
@kalleep kalleep force-pushed the kalleep/fix-loki-source-podlogs-meta-labels branch from 40e8818 to 72847b0 Compare December 16, 2025 08:20
@kalleep kalleep merged commit 23d787c into main Dec 16, 2025
44 checks passed
@kalleep kalleep deleted the kalleep/fix-loki-source-podlogs-meta-labels branch December 16, 2025 12:06
@github-actions github-actions bot locked and limited conversation to collaborators Dec 16, 2025
@grafana-alloybot grafana-alloybot bot mentioned this pull request Dec 16, 2025
3 tasks
@grafana grafana unlocked this conversation Dec 16, 2025
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 31, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport/v1.12 Backport to release/v1.12 frozen-due-to-age

Projects

None yet

Development

Successfully merging this pull request may close these issues.

preserve_discovered_labels does not preserve __meta_kubernetes_* labels for downstream components

3 participants