VictoriaMetrics/lib/promscrape/discoveryutils
Aliaksandr Valialkin f325410c26
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:00 -08:00
..
client.go lib/promscrape: retry http requests if the server returns 429 status code 2022-08-16 15:01:08 +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:14:00 +02:00
utils.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
utils_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:00 -08:00
utils_timing_test.go lib/promscrape: optimize discoveryutils.SanitizeLabelName() 2022-08-27 00:17:45 +03:00