Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus 0.18.0 fails to start with short version of Alertmanger URL #1579
Comments
xbglowx
changed the title
Prometheus 0.18.0 can't resolve short version of Alertmanger URL
Prometheus 0.18.0 fails to start with short version of Alertmanger URL
Apr 23, 2016
grobie
added
the
bug
label
Apr 23, 2016
This comment has been minimized.
This comment has been minimized.
|
0.18.0 introduced #1456, which uses The |
This comment has been minimized.
This comment has been minimized.
|
But requiring a TLD at all implies that relative domains can't be used. This would make e.g. using it in Kubernetes unnecessarily hard, so I think this should be relaxed a bit. |
This comment has been minimized.
This comment has been minimized.
|
@matthiasr So it allows having no TLD at all (just All for relaxing this. |
This comment has been minimized.
This comment has been minimized.
|
I filed an issue with govalidator, let's see: asaskevich/govalidator#125 |
This comment has been minimized.
This comment has been minimized.
|
It's fixed upstream. |
brian-brazil
closed this
in
#1581
Apr 24, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
xbglowx commentedApr 23, 2016
•
edited
I am trying to upgrade from Prometheus 0.17.0 to 0.18.0 and noticed that Prometheus is failing to start due to:
2016-04-22_23:43:36.52662 time="2016-04-22T23:43:36Z" level=error msg="invalid Alertmanager URL: http://prometheus-alertmanager.service.q:9093" source="main.go:65"I first thought Prometheus couldn't resolve the URL, but after doing some straces, I didn't even see Prometheus trying to resolve the name. Prometheus 0.18.0 currently doesn't like it when there is a single character after the last
.of the URL. Maybe there is regex in Prometheus which is assuming that all URLs will be FQDN and there are no single character TLDs?Works:
http://prometheus-alertmanager.t.teDoesn't work:
http://prometheus-alertmanager.t.t