VictoriaMetrics/lib/promscrape/discovery/consul
Roman Khavronenko 5a4b16794d
Consul SD - update services on the watcher's start (#2202)
* lib/discovery/consul: update services on the watcher's start

Previously, watcher's start was only initing goroutines for discovery
but not waiting for the first iteration to end. It means first Consul
discovery wasn't returning discovered targets until the next iteration.

The change makes the watcher's start blocking until we get first discovery
iteration done and all registries updated.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* vmalert: remove workarounds for consul SD

Now when consul SD lib properly updates services
on the first start, we don't need workarounds in vmalert.

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* lib/discovery/consul: update after review

Signed-off-by: hagen1778 <roman@victoriametrics.com>

* wip

Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2022-02-21 15:33:33 +02:00
..
agent_test.go lib/promscrape: add Prometheus-compatible service discovery for Consul aka consul_sd_configs 2020-05-04 20:53:06 +03:00
agent.go all: use %w instead of %s for wrapping errors in fmt.Errorf 2020-06-30 23:33:46 +03:00
api.go app/{vminsert,vmagent}: hide passwords and auth tokens by default at /config page 2021-11-05 14:42:13 +02:00
consul.go app/{vminsert,vmagent}: hide passwords and auth tokens by default at /config page 2021-11-05 14:42:13 +02:00
service_node_test.go adds consul enterprise namespace support (#1400) 2021-06-22 12:56:11 +03:00
service_node.go adds consul enterprise namespace support (#1400) 2021-06-22 12:56:11 +03:00
watch.go Consul SD - update services on the watcher's start (#2202) 2022-02-21 15:33:33 +02:00