mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
0b9fca983b
Rational: * When the config is reloaded and the provider context is canceled, we need to exit the current ZK `TargetProvider.Run` method as a new provider will be instantiated. * In case `Stop` is called on the `ZookeeperTreeCache`, the update/events channel may not be closed as it is shared by multiple caches and would thus be double closed. * Stopping all `zookeeperTreeCacheNode`s on teardown ensures all associated watcher go-routines will be closed eagerly rather than implicityly on connection close events. |
||
---|---|---|
.. | ||
azure | ||
consul | ||
dns | ||
ec2 | ||
file | ||
gce | ||
kubernetes | ||
marathon | ||
triton | ||
zookeeper | ||
discovery.go | ||
discovery_test.go |