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

Promtail: use --client.external-labels for all clients #2474

Merged
merged 2 commits into from
Aug 7, 2020

Conversation

slim-bean
Copy link
Collaborator

We generally deprecated the use of the single client config in our config file examples however the command line flag --client.external-labels only applies to the single client config.

This PR takes the values from that flag and applies them to all the clients in the multi-client config section.

If someone wishes to have a diferrent value for a given key for a client they can specify it in the config file.

Different to the normal order of precedence a specific yaml key=value will replace what's in the command line if there are matching keys in both.

…els to all clients configured in the clients config section of the config file.
Copy link
Member

@owen-d owen-d left a comment

Choose a reason for hiding this comment

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

lgtm, well explained.

@owen-d owen-d merged commit 36164bb into master Aug 7, 2020
@owen-d owen-d deleted the improve-external-labels branch August 7, 2020 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants