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