VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin f3e89754a9 lib/promscrape: reduce CPU usage for common case when calculating scrape_series_added metric
Also reduce CPU usage when applying `series_limit` to scrape targets with constant set of metrics.

The main idea is to perform the calculations on scrape_series_added and series_limit
only if the set of metrics exposed by the target has been changed.
Scrape targets rarely change the set of exposed metrics,
so this optimization should reduce CPU usage in general case.
2021-09-12 12:53:14 +03:00
..
discovery lib/promscrape/discovery/kubernetes: return back support role: endpointslices, since it is used by VictoriaMetrics operator 2021-08-29 12:37:03 +03:00
discoveryutils adds http_sd (#1399) 2021-06-22 13:33:37 +03:00
testdata lib/promscrape: add ability to load scrape configs from multiple files 2021-08-26 08:51:16 +03:00
client.go lib/promscrape: increase the duration for reading the full response in stream parsing mode 2021-06-14 12:28:09 +03:00
config.go lib/promscrape: add ability to set series_limit and stream_parse options via relabeling 2021-09-09 18:49:39 +03:00
config_test.go lib/promscrape: add ability to set series_limit and stream_parse options via relabeling 2021-09-09 18:49:39 +03:00
scraper.go lib/promscrape: add ability to load scrape configs from multiple files 2021-08-26 08:51:16 +03:00
scrapework.go lib/promscrape: reduce CPU usage for common case when calculating scrape_series_added metric 2021-09-12 12:53:14 +03:00
scrapework_test.go lib/promscrape: reduce CPU usage for common case when calculating scrape_series_added metric 2021-09-12 12:53:14 +03:00
scrapework_timing_test.go app/vmagent: follow-up after fe445f753b 2021-08-05 09:52:32 +03:00
statconn.go all: make golint happy 2021-03-17 00:49:28 +02:00
targets_response.qtpl lib/promscrape: restore red highlighting for DOWN targets at /targets page 2021-08-15 16:03:57 +03:00
targets_response.qtpl.go lib/promscrape: restore red highlighting for DOWN targets at /targets page 2021-08-15 16:03:57 +03:00
targetstatus.go lib/promscrape: show jobs with empty scrape targets on /targets page 2021-06-18 10:53:52 +03:00