VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin 8ff2f1cc02
lib/promscrape: do not re-use previously loaded scrape targets on failed attempt to load updated scrape targets at file_sd_configs
The logic employed for re-using the previously loaded scrape target was broken initially.
The commit cc0427897c tried to fix it, but the new logic
became too complex and fragile. So it is better to just remove this logic,
since the targets from temporarily broken file should be eventually loaded on next
attempts every -promscrape.fileSDCheckInterval

This also allows removing fragile hacks around __vm_filepath label.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/3989
2023-04-02 21:18:43 -07:00
..
discovery lib/promscrape/discovery: missing changes after b4ad3a3b4c 2023-01-27 15:10:44 -08:00
discoveryutils lib/promscrape/discovery/azure: remove API server from URL returned by azure (#3403) 2022-12-10 21:34:43 -08:00
testdata lib/promscrape: fix errors in test config 2022-02-08 20:10:28 +02:00
client.go lib/flagutil/bytes.go: properly handle values bigger than 2GiB on 32-bit architectures 2023-01-10 19:36:23 -08:00
config.go lib/promscrape: do not re-use previously loaded scrape targets on failed attempt to load updated scrape targets at file_sd_configs 2023-04-02 21:18:43 -07:00
config_test.go lib/promscrape: do not re-use previously loaded scrape targets on failed attempt to load updated scrape targets at file_sd_configs 2023-04-02 21:18:43 -07:00
config_timing_test.go lib/promscrape: follow-up after 91e290a8ff 2022-04-20 16:12:26 +03:00
scraper.go lib/promscrape: adds azure service discovery (#2743) 2022-07-13 23:45:43 +03:00
scrapework.go /lib/promscrape: use correct err logger for scrape unmarshalling (#3645) 2023-01-27 14:52:51 -08:00
scrapework_test.go lib/promscrape: fix a test after c66f676f3b 2022-07-06 13:25:17 +03:00
scrapework_timing_test.go app/vmagent: follow-up after fe445f753b 2021-08-05 09:51:00 +03:00
statconn.go lib/promscrape: properly show proxy_url option value at /config page 2021-10-26 21:24:22 +03:00
targetstatus.go all: follow-up after 8edb390e21 2022-06-07 01:05:53 +03:00
targetstatus.qtpl all: follow-up after 8edb390e21 2022-06-07 01:05:53 +03:00
targetstatus.qtpl.go all: follow-up after 8edb390e21 2022-06-07 01:05:53 +03:00