diff --git a/config/config.go b/config/config.go index 36847d045..f18f4f4a5 100644 --- a/config/config.go +++ b/config/config.go @@ -580,9 +580,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), })