VictoriaMetrics/lib/promscrape/discovery/dockerswarm
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
..
api.go lib/promscrape: split docker and dockerswarm service discovery code bases, since they have very little in common 2021-06-25 13:22:16 +03:00
api_test.go lib/promscrape: split docker and dockerswarm service discovery code bases, since they have very little in common 2021-06-25 13:22:16 +03:00
dockerswarm.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
network.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
network_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
nodes.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
nodes_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
services.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
services_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
tasks.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
tasks_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00