VictoriaMetrics/lib/promscrape
Roman Khavronenko d5eb6afe26
lib/promscrape/discovery/kubernetes: fixes kubernetes service discovery (#2615)
* lib/promscrape/discovery/kubernetes: properly updates discovered scrape works
previously, added or updated scrapeworks may override previuosly
discovered.
it happens because swosByKey may contain small subset of kubernetes
objects with it's labels.
It happens for objectsUpdated and objectsAdded maps, which include only changed elements

* Properly calculate vm_promscrape_discovery_kubernetes_scrape_works

Co-authored-by: f41gh7 <nik@victoriametrics.com>
Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2022-05-21 01:01:37 +03:00
..
discovery lib/promscrape/discovery/kubernetes: fixes kubernetes service discovery (#2615) 2022-05-21 01:01:37 +03:00
discoveryutils lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:05:40 +03:00
testdata lib/promscrape: fix errors in test config 2022-02-08 19:56:37 +02:00
client.go lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:05:40 +03:00
config.go docs/vmagent.md: typo fix in the description for -promscrape.cluster.replicationFactor command-line flag 2022-05-12 18:50:29 +03:00
config_test.go lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:05:40 +03:00
config_timing_test.go lib/promscrape: follow-up after 91e290a8ff 2022-04-20 16:11:37 +03:00
scraper.go lib/promscrape: adds job restart method (#2455) 2022-04-16 20:28:46 +03:00
scrapework.go lib/promscrape: rename promscrape_stale_samples_created_total metric to vm_promscrape_stale_samples_created_total, so its name is consistent with the rest of vm_promscrape_ metrics 2022-05-06 15:33:13 +03: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
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: use a hash over target labels as a key for dropped targets' map 2022-04-20 15:37:00 +03:00
targetstatus.qtpl lib/promscrape: simply update UI (#2479) 2022-04-20 10:25:04 +02:00
targetstatus.qtpl.go Fix targetstatus qtpl paths (#2517) 2022-04-29 10:36:03 +03:00