VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin fe084fdd33 lib/promscrape/discovery/kubernetes: synchronously load Kubernetes objects on first access
Remove async registration of apiWatchers, since it breaks discovering `role: endpoints` and `role: endpointslices` targets,
which depend on pod and service objects.

There is no need in reloading `endpoints` and `endpointslices` targets if the referenced `pod` or `service` objects change,
since in this case the corresponding `endpoints` and `endpointslices` objects should also change because they contain
ResourceVersion of the referenced `pod` or `service` objects, which is modified on object update.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1182
2021-04-05 14:37:07 +03:00
..
discovery lib/promscrape/discovery/kubernetes: synchronously load Kubernetes objects on first access 2021-04-05 14:37:07 +03:00
discoveryutils lib/promscrape: properly send full url in GET request via simple HTTP proxy 2021-04-04 01:20:43 +03:00
testdata lib/promscrape: extract common auth code to lib/promauth 2020-04-13 12:59:22 +03:00
client.go lib/promscrape: pass X-Prometheus-Scrape-Timeout-Seconds header to scrape targets as Prometheus does 2021-04-05 12:15:14 +03:00
config_test.go lib/promscrape: add tests for authorization config, which has been added in df148f48b7 2021-04-03 22:14:03 +03:00
config.go lib/promscrape: support for simple HTTP proxies without CONNECT method support such as https://github.com/prometheus-community/PushProx 2021-04-04 00:40:58 +03:00
scraper.go lib/promscrape/discovery/kubernetes: synchronously load Kubernetes objects on first access 2021-04-05 14:37:07 +03:00
scrapework_test.go lib/promscrape: apply sample_limit after metric relabeling is applied as Prometheus does 2021-03-09 15:52:41 +02:00
scrapework_timing_test.go lib/promscrape: remove ID field from ScrapeWork struct. Use a pointer to ScrapeWork as a key in targetStatusMap 2020-12-17 14:31:55 +02:00
scrapework.go lib/promscrape: add follow_redirect option to scrape_configs section like Prometheus does 2021-04-02 21:20:37 +03:00
statconn.go all: make go vet happy 2021-03-17 00:48:44 +02:00
targets_response.qtpl lib/promscrape: add bootstrap styles to /targets html page 2020-12-15 12:38:29 +02:00
targets_response.qtpl.go lib/promscrape: add bootstrap styles to /targets html page 2020-12-15 12:38:29 +02:00
targetstatus.go all: various fixes in command-line flag descriptions 2021-03-15 22:03:49 +02:00