mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 08:33:06 +00:00
comment nits
This commit is contained in:
parent
a535c8d1b4
commit
38938ba493
@ -69,8 +69,8 @@ func NewManager(logger log.Logger) *Manager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Manager maintains a set of discovery providers and sends each update to a channel used by other packages.
|
// Manager maintains a set of discovery providers and sends each update to a map channel.
|
||||||
// Targets sent to the channel are grouped by the target set name.
|
// Targets are grouped by the target set name.
|
||||||
type Manager struct {
|
type Manager struct {
|
||||||
logger log.Logger
|
logger log.Logger
|
||||||
actionCh chan func(context.Context)
|
actionCh chan func(context.Context)
|
||||||
@ -182,7 +182,7 @@ func (m *Manager) allGroups() map[string][]*targetgroup.Group {
|
|||||||
for pkey, tsets := range m.targets {
|
for pkey, tsets := range m.targets {
|
||||||
for _, tg := range tsets {
|
for _, tg := range tsets {
|
||||||
// Even if the target group 'tg' is empty we still need to send it to the 'Scrape manager'
|
// Even if the target group 'tg' is empty we still need to send it to the 'Scrape manager'
|
||||||
// to singal that is needs to stop all scrape loops for this target set.
|
// to signal that it needs to stop all scrape loops for this target set.
|
||||||
tSetsAll[pkey.setName] = append(tSetsAll[pkey.setName], tg)
|
tSetsAll[pkey.setName] = append(tSetsAll[pkey.setName], tg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user