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

Adding check for webhook's URL formatting #1129

Merged
merged 2 commits into from
Dec 7, 2017
Merged

Adding check for webhook's URL formatting #1129

merged 2 commits into from
Dec 7, 2017

Conversation

xginn8
Copy link
Contributor

@xginn8 xginn8 commented Dec 5, 2017

Since alertmanager will fail silently when trying to send to a schemaless URL, provide a way to check that a URL is properly formatted in alertmanager

Since alertmanager will fail silently when trying to send to a schemaless URL, provide a way to check that a URL is properly formatted in alertmanager
return err
}
if url.Scheme != "https" && url.Scheme != "http" {
return fmt.Errorf("non-absolute URL in webhook config")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this to scheme required for webhook url?

@stuartnelson3 stuartnelson3 merged commit 266baa0 into prometheus:master Dec 7, 2017
@xginn8 xginn8 deleted the url_schema branch December 8, 2017 03:36
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