VictoriaMetrics/lib/promscrape/discovery/kubernetes
Aliaksandr Valialkin 17b87725ed lib/promscrape/discovery/kubernetes: reduce memory usage when Kubernetes service discovery is configured on a big number of scrape jobs
Previously vmagent was creating a separate Kubernetes object cache per each scrape job.
This could result in increased memory usage when monitoring a Kubernetes cluster with big number of objects (pods / nodes / services, etc.)
as seen at https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1113

Now it uses a shared map of scrape objects across multiple scrape jobs.
2021-03-05 17:29:55 +02:00
..
api.go lib/promscrape/discovery/kubernetes: move apiWatcher code to a separate file 2021-03-05 12:36:05 +02:00
api_watcher.go lib/promscrape/discovery/kubernetes: reduce memory usage when Kubernetes service discovery is configured on a big number of scrape jobs 2021-03-05 17:29:55 +02:00
api_watcher_test.go lib/promscrape/discovery/kubernetes: move apiWatcher code to a separate file 2021-03-05 12:36:05 +02:00
common_types.go lib/promscrape: cleanup after 9b2246c29b 2021-02-26 16:54:05 +02:00
endpoints.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
endpoints_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00
endpointslices.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
endpointslices_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00
ingress.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
ingress_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00
kubernetes.go lib/promscrape/discovery/kubernetes: cache ScrapeWork objects as soon as the corresponding k8s objects are changed 2021-03-02 16:42:55 +02:00
node.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
node_test.go lib/promscrape/discovery/kubernetes: compare sorted sets of labels in tests 2021-02-28 14:10:19 +02:00
pod.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
pod_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00
service.go lib/promscrape/discovery/kubernetes: cache target labels 2021-02-26 20:23:28 +02:00
service_test.go lib/promscrape/discovery/kubernetes: deflake tests; a follow-up for 05fb08713c 2021-03-01 14:32:12 +02:00