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

pkg/promtail/client: missing URL in client returns error #1416

Merged
merged 1 commit into from
Dec 13, 2019
Merged

pkg/promtail/client: missing URL in client returns error #1416

merged 1 commit into from
Dec 13, 2019

Conversation

pstibrany
Copy link
Member

What this PR does / why we need it:
If client has no URL, don't panic but return error.

Which issue(s) this PR fixes:
Fixes #1404

Previously it would just panic, because URL.Host is used to construct logger.

Signed-off-by: Peter Štibraný <peter.stibrany@grafana.com>
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.

LGTM!

@rfratto rfratto merged commit 4fea713 into grafana:master Dec 13, 2019
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.

promtail: panic with external_labels
2 participants