mirror of
https://github.com/prometheus/prometheus.git
synced 2025-11-29 14:41:01 +01:00
discovery-manager comment update
This commit is contained in:
parent
135ea0f793
commit
77bf6bece0
@ -74,7 +74,8 @@ type Manager struct {
|
|||||||
logger log.Logger
|
logger log.Logger
|
||||||
actionCh chan func(context.Context)
|
actionCh chan func(context.Context)
|
||||||
discoverCancel []context.CancelFunc
|
discoverCancel []context.CancelFunc
|
||||||
// We use map[string]*targetgroup.Group to handle Discoverers that send only updates instead of all targets on every update.
|
// Some Discoverers(eg. k8s) send only the updates for a given target group
|
||||||
|
// so we use map[tg.Source]*targetgroup.Group to know which group to update.
|
||||||
targets map[poolKey]map[string]*targetgroup.Group
|
targets map[poolKey]map[string]*targetgroup.Group
|
||||||
// The sync channels sends the updates in map[targetSetName] where targetSetName is the job value from the scrape config.
|
// The sync channels sends the updates in map[targetSetName] where targetSetName is the job value from the scrape config.
|
||||||
syncCh chan map[string][]*targetgroup.Group
|
syncCh chan map[string][]*targetgroup.Group
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user