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

Reorder relabeling rules to prevent pod label from overwriting config define labels #857

Merged
merged 1 commit into from
Aug 6, 2019

Conversation

slim-bean
Copy link
Collaborator

@slim-bean slim-bean commented Aug 6, 2019

The current ordering of relabel rules will cause any of the defined labels:

job, namespace, instance, container_name and __path__

To be overwritten by pod labels of the same name if they are present.

This change puts the labelmap rule before the rules which set the above labels and thus prevents any existing pod label from overwriting any of those labels.

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@slim-bean slim-bean merged commit 07f9584 into master Aug 6, 2019
@slim-bean slim-bean deleted the reorder-relabeling branch August 6, 2019 16:17
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.

None yet

2 participants