VictoriaMetrics/lib/promscrape/discovery/kubernetes
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
..
testdata lib/promscrape/discovery/kubernetes: follow-up after 0b5c874911 (#2672) 2022-06-04 01:11:23 +03:00
api.go lib/promauth: refactor NewConfig in order to improve maintainability 2022-07-04 14:31:43 +03:00
api_watcher.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
api_watcher_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
common_types.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
endpoints.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
endpoints_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
endpointslice.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
endpointslice_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
ingress.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
ingress_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
kubeconfig.go lib/promscrape/discovery/kubernetes: use unsupportedFieldError() function instead of errContext string 2022-06-07 01:24:14 +03:00
kubeconfig_test.go lib/promscrape/discovery/kubernetes: follow-up after 006b8c7534 2022-06-06 14:41:28 +03:00
kubernetes.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
node.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
node_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
pod.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
pod_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
pod_timing_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
service.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00
service_test.go lib/promscrape: optimize service discovery speed 2022-11-29 21:26:23 -08:00