VictoriaMetrics/lib/promscrape
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
..
discovery Consul SD - update services on the watcher's start (#2202) 2022-02-21 15:33:33 +02:00
discoveryutils lib/promscrape: properly show proxy_url option value at /config page 2021-10-26 21:24:22 +03:00
testdata lib/promscrape: fix errors in test config 2022-02-08 20:10:28 +02:00
client.go lib/promscrape: allow up to 5 redirects when scraping a target by default 2021-12-16 00:14:45 +02:00
config_test.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00
config.go match fileSDCheckInterval with prometheus file_sd_config default (#2188) 2022-02-15 12:05:57 +02:00
scraper.go match fileSDCheckInterval with prometheus file_sd_config default (#2188) 2022-02-15 12:05:57 +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:21:26 +03:00
scrapework_timing_test.go app/vmagent: follow-up after fe445f753b 2021-08-05 09:51:00 +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:02:12 +02:00
statconn.go lib/promscrape: properly show proxy_url option value at /config page 2021-10-26 21:24:22 +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:23:27 +02:00
targetstatus.qtpl vmagent: fix js error on CollapseAll/ExpandAll buttons click (#2192) 2022-02-15 12:54:39 +02:00
targetstatus.qtpl.go vmagent: fix js error on CollapseAll/ExpandAll buttons click (#2192) 2022-02-15 12:54:39 +02:00