VictoriaMetrics/app/vmalert/notifier
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
..
testdata vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
alert_test.go vmalert: support $externalLabels and $externalURL in templates 2022-02-15 21:13:32 +02:00
alert.go vmalert: support $externalLabels and $externalURL in templates 2022-02-15 21:13:32 +02:00
alertmanager_request.qtpl Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
alertmanager_request.qtpl.go Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
alertmanager_test.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
alertmanager.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
config_test.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
config_watcher_test.go Consul SD - update services on the watcher's start (#2202) 2022-02-21 15:33:33 +02:00
config_watcher.go Consul SD - update services on the watcher's start (#2202) 2022-02-21 15:33:33 +02:00
config.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00
init.go vmalert: support $externalLabels and $externalURL in templates 2022-02-15 21:13:32 +02:00
notifier.go vmalert: support configuration file for notifiers (#2127) 2022-02-02 23:42:25 +02:00
package_test.go Support of custom URL path for alert (#560) 2020-06-21 16:33:58 +03:00
template_func.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00