mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
sd: Fix stuck Azure service discovery (#5088)
Signed-off-by: Sylvain Rabot <s.rabot@lectra.com>
This commit is contained in:
parent
d7225ac4a2
commit
d9f4a8c95f
|
@ -362,6 +362,10 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If we get here we haven't sent anything to the channel.
|
||||
// We need to send it something to release it.
|
||||
ch <- target{}
|
||||
}(i, vm)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue