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
1 changed files with 0 additions and 3 deletions

View File

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