VictoriaMetrics/lib/promutils
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
..
duration.go lib/promscrape: properly implement ScrapeConfig.clone() 2022-05-07 00:06:19 +03:00
duration_test.go lib/promscrape: support prometheus-like duration in scrape configs (#2169) 2022-02-11 16:17:51 +02:00
labels.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
labels_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
labels_timing_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00