VictoriaMetrics/lib/promscrape
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
..
discovery Consul SD - update services on the watcher's start (#2202) 2022-02-21 15:32:45 +02:00
discoveryutils lib/promscrape: properly show proxy_url option value at /config page 2021-10-26 21:23:54 +03:00
testdata lib/promscrape: fix errors in test config 2022-02-08 19:56:37 +02:00
client.go lib/promscrape: allow up to 5 redirects when scraping a target by default 2021-12-16 00:14:14 +02:00
config_test.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:00 +02:00
config.go match fileSDCheckInterval with prometheus file_sd_config default (#2188) 2022-02-15 12:04:26 +02:00
scraper.go match fileSDCheckInterval with prometheus file_sd_config default (#2188) 2022-02-15 12:04:26 +02:00
scrapework_test.go lib/promscrape: generate scrape_timeout_seconds metric per each scrape target in the same way as Prometheus 2.30 does 2021-09-12 15:20:44 +03:00
scrapework_timing_test.go app/vmagent: follow-up after fe445f753b 2021-08-05 09:52:32 +03:00
scrapework.go lib/promscrape: provide the ability to fetch target responses on behalf of vmagent or single-node VictoriaMetrics 2022-02-03 19:00:55 +02:00
statconn.go lib/promscrape: properly show proxy_url option value at /config page 2021-10-26 21:23:54 +03:00
targetstatus.go lib/promscrape: show the total number of scrapes and the total number of scrape errors per target at /targets page 2022-02-03 20:22:41 +02:00
targetstatus.qtpl vmagent: fix js error on CollapseAll/ExpandAll buttons click (#2192) 2022-02-15 12:52:48 +02:00
targetstatus.qtpl.go vmagent: fix js error on CollapseAll/ExpandAll buttons click (#2192) 2022-02-15 12:52:48 +02:00