Merge pull request #1783 from knyar/json

Allow URLs in targets defined via a JSON file
This commit is contained in:
Fabian Reinartz 2016-08-10 09:42:17 +02:00 committed by GitHub
commit be596f82b4
1 changed files with 0 additions and 3 deletions

View File

@ -575,9 +575,6 @@ func (tg *TargetGroup) UnmarshalJSON(b []byte) error {
}
tg.Targets = make([]model.LabelSet, 0, len(g.Targets))
for _, t := range g.Targets {
if strings.Contains(t, "/") {
return fmt.Errorf("%q is not a valid hostname", t)
}
tg.Targets = append(tg.Targets, model.LabelSet{
model.AddressLabel: model.LabelValue(t),
})