VictoriaMetrics/lib/promscrape/discoveryutils
Aliaksandr Valialkin be6da5053f
lib/promscrape: optimize service discovery speed
- Return meta-labels for the discovered targets via promutils.Labels
  instead of map[string]string. This improves the speed of generating
  meta-labels for discovered targets by up to 5x.

- Remove memory allocations in hot paths during ScrapeWork generation.
  The ScrapeWork contains scrape settings for a single discovered target.
  This improves the service discovery speed by up to 2x.
2022-11-29 21:26:23 -08:00
..
client.go lib/promscrape: retry http requests if the server returns 429 status code 2022-08-16 14:57:26 +03:00
config_map.go lib/promscrape: explicitly stop and cleanup service discovery routines when new config is read from -promscrape.config 2021-03-01 14:15:16 +02:00
utils_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
utils_timing_test.go lib/promscrape: optimize discoveryutils.SanitizeLabelName() 2022-08-27 00:18:19 +03:00
utils.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00