mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Revert unrelated changes
Signed-off-by: darshanime <deathbullet@gmail.com>
This commit is contained in:
parent
36d92e5738
commit
db7a60f162
|
@ -20,7 +20,7 @@ import (
|
||||||
"github.com/prometheus/common/model"
|
"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 {
|
type Group struct {
|
||||||
// Targets is a list of targets identified by a label set. Each target is
|
// Targets is a list of targets identified by a label set. Each target is
|
||||||
// uniquely identifiable in the group by its address label.
|
// uniquely identifiable in the group by its address label.
|
||||||
|
|
|
@ -169,7 +169,6 @@ func (m *Manager) reloader() {
|
||||||
func (m *Manager) reload() {
|
func (m *Manager) reload() {
|
||||||
m.mtxScrape.Lock()
|
m.mtxScrape.Lock()
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
|
||||||
for setName, groups := range m.targetSets {
|
for setName, groups := range m.targetSets {
|
||||||
if _, ok := m.scrapePools[setName]; !ok {
|
if _, ok := m.scrapePools[setName]; !ok {
|
||||||
scrapeConfig, ok := m.scrapeConfigs[setName]
|
scrapeConfig, ok := m.scrapeConfigs[setName]
|
||||||
|
@ -198,7 +197,6 @@ func (m *Manager) reload() {
|
||||||
}
|
}
|
||||||
|
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
|
||||||
// Run the sync in parallel as these take a while and at high load can't catch up.
|
// 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) {
|
go func(sp *scrapePool, groups []*targetgroup.Group) {
|
||||||
sp.Sync(groups)
|
sp.Sync(groups)
|
||||||
|
|
Loading…
Reference in a new issue