diff --git a/retrieval/targetmanager.go b/retrieval/targetmanager.go index cac55651a..194b1f49c 100644 --- a/retrieval/targetmanager.go +++ b/retrieval/targetmanager.go @@ -51,7 +51,6 @@ type TargetProvider interface { // target providers. type TargetManager struct { mtx sync.RWMutex - globalLabels model.LabelSet sampleAppender storage.SampleAppender running bool done chan struct{} @@ -356,7 +355,6 @@ func (tm *TargetManager) ApplyConfig(cfg *config.Config) bool { tm.mtx.Lock() defer tm.mtx.Unlock() - tm.globalLabels = cfg.GlobalConfig.Labels tm.providers = providers return true } @@ -481,7 +479,6 @@ func (tm *TargetManager) targetsFromGroup(tg *config.TargetGroup, cfg *config.Sc model.MetricsPathLabel: model.LabelValue(cfg.MetricsPath), model.JobLabel: model.LabelValue(cfg.JobName), }, - tm.globalLabels, } for _, lset := range labelsets { for ln, lv := range lset {