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 upCannot use IPv6 address in Alertmanager URL #2025
Comments
This comment has been minimized.
This comment has been minimized.
|
@thedirtycolumbia Thanks! Hmm, govalidator has bitten us a number of times already now. I wonder if we should keep using it or just let the occasional wrong URL through. For now I filed a bug there: asaskevich/govalidator#150 The fix doesn't seem totally trivial if one wanted to fix the |
This comment has been minimized.
This comment has been minimized.
|
@juliusv Thanks for the quick response and the bug filed upstream! I have subscribed to that issue as well. It may be that moving away from the URL regex is a good solution if it is a recurring problem. We'll keep an eye on how things go in asaskevich/govalidator#150. |
This comment has been minimized.
This comment has been minimized.
|
@thedirtycolumbia Yeah, sorry about that. The workaround for now would be to use a DNS name (or even just an /etc/hosts entry) that resolves only to a v6 address. Still, we should fix this soon ourselves if govalidator doesn't do so. |
This comment has been minimized.
This comment has been minimized.
|
Looks like we just need to update our vendoring now. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil Thanks! We're looking forward to this fix. |
brancz
added a commit
to brancz/prometheus
that referenced
this issue
Oct 27, 2016
brian-brazil
closed this
in
#2125
Oct 27, 2016
brian-brazil
added a commit
that referenced
this issue
Oct 27, 2016
beorn7
added a commit
that referenced
this issue
Oct 28, 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. |
thedirtycolumbia commentedSep 23, 2016
What did you do?
Tried to set -alertmanager.url=http://[IPV6ADDRESS]:PORT/
What did you expect to see?
Prometheus able to send alerts to an IPv6 Alertmanager.
What did you see instead? Under which circumstances?
It appears that
govalidator.IsURLdoes not properly handle IPv6 address (w/ or w/o brackets).Environment
System information:
Linux 3.14.33-4.el6.pharos.x86_64 x86_64
Prometheus version:
prometheus, version 0.18.0 (branch: release-0.18, revision: f12ebd6)
build user: root@ebaf628123aa
build date: 20160418-08:20:43
go version: go1.5.4
Alertmanager version:
alertmanager, version 0.4.2 (branch: master, revision: 9a5ab2fa63dd7951f4f202b0846d4f4d8e9615b0)
build user: root@2811d2f42616
build date: 20160902-15:33:13
go version: go1.6.3
Prometheus configuration file:
https://gist.github.com/shore/8761b976a0f2a68e366772c4033b62b3
Alertmanager configuration file:
https://gist.github.com/shore/bfa3def3beb8b83f86e48b8a72b86d3c
Logs: