diff --git a/discovery/targetgroup/targetgroup.go b/discovery/targetgroup/targetgroup.go index cf9d8c6158..e74870f046 100644 --- a/discovery/targetgroup/targetgroup.go +++ b/discovery/targetgroup/targetgroup.go @@ -20,7 +20,7 @@ import ( "github.com/prometheus/common/model" ) -// Group is a set of targets with a common label set(production, test, staging etc). +// Group is a set of targets with a common label set(production , test, staging etc.). type Group struct { // Targets is a list of targets identified by a label set. Each target is // uniquely identifiable in the group by its address label. diff --git a/scrape/manager.go b/scrape/manager.go index 2ba9d54dde..409372206e 100644 --- a/scrape/manager.go +++ b/scrape/manager.go @@ -164,7 +164,6 @@ func (m *Manager) reloader() { func (m *Manager) reload() { m.mtxScrape.Lock() var wg sync.WaitGroup - for setName, groups := range m.targetSets { if _, ok := m.scrapePools[setName]; !ok { scrapeConfig, ok := m.scrapeConfigs[setName] @@ -183,7 +182,6 @@ func (m *Manager) reload() { } wg.Add(1) - // Run the sync in parallel as these take a while and at high load can't catch up. go func(sp *scrapePool, groups []*targetgroup.Group) { sp.Sync(groups)