Remove attachment of global labels upon ingestion

This commit is contained in:
Fabian Reinartz 2015-09-01 17:49:09 +02:00
parent 4459265739
commit cc1a2a2061

View file

@ -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 {