VictoriaMetrics/lib/promscrape/discovery/consul
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
..
agent_test.go
agent.go
api.go all: use os.{Read|Write}File instead of ioutil.{Read|Write}File 2022-08-21 23:55:20 +03:00
consul.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
service_node_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
service_node.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
watch.go lib/promscrape/discovery/consul: add __meta_consul_partition label in the same way as Prometheus does 2022-11-07 15:26:45 +02:00