VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin 6bc10f0623
lib/promscrape: do not sort original labels and do not intern label string for the original labels before the sharding code is executed
This should reduce CPU and memory usage in shard mode when service discovery finds big number of scrape targets with many long labels.
See https://docs.victoriametrics.com/vmagent.html#scraping-big-number-of-targets

This is a follow-up after 9882cda8b9

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1728
2021-10-22 13:55:39 +03:00
..
discovery lib/promscrape/discovery/kubernetes: log a warning if role: endpoints discovers more than 1000 targets per a single endpoint 2021-10-19 13:22:28 +03:00
discoveryutils lib/promscrape/discovery/kubernetes: log a warning if role: endpoints discovers more than 1000 targets per a single endpoint 2021-10-19 13:22:28 +03:00
testdata lib/promscrape: add ability to load scrape configs from multiple files 2021-08-26 08:51:53 +03:00
client.go lib/promscrape: always initialize http client for stream parsing mode 2021-10-16 13:19:48 +03:00
config.go lib/promscrape: do not sort original labels and do not intern label string for the original labels before the sharding code is executed 2021-10-22 13:55:39 +03:00
config_test.go lib/promscrape: set honor_timestamps: true by default if this option isnt set explicitly in scrape configs 2021-10-16 20:48:53 +03:00
scraper.go lib/promscrape: make errcheck happy (#1703) 2021-10-13 15:11:45 +03:00
scrapework.go lib/promscrape: reduce memory usage if -promscrape.noStaleMarkers command-line flag is passed 2021-10-22 13:22:08 +03:00
scrapework_test.go lib/promscrape: generate scrape_timeout_seconds metric per each scrape target in the same way as Prometheus 2.30 does 2021-09-12 15:21:26 +03:00
scrapework_timing_test.go app/vmagent: follow-up after fe445f753b 2021-08-05 09:51:00 +03:00
statconn.go all: make go vet happy 2021-03-17 00:48:44 +02:00
targets_response.qtpl lib/promscrape: add ability to show the original labels for discovered targets at /targets page 2021-10-13 16:44:34 +03:00
targets_response.qtpl.go lib/promscrape: add ability to show the original labels for discovered targets at /targets page 2021-10-13 16:44:34 +03:00
targetstatus.go changes job source for /target api (#1723) 2021-10-19 09:00:05 +03:00