VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin 67bc407747 lib/promscrape: reduce memory and CPU usage when Prometheus staleness tracking is enabled for metrics from deleted / disappeared scrape targets
Store the scraped response body instead of storing the parsed and relabeld metrics.
This should reduce memory usage, since the response body takes less memory than the parsed and relabeled metrics.
This is especially true for Kubernetes service discovery, which adds many long labels for all the scraped metrics.

This should also reduce CPU usage, since the marshaling of the parsed
and relabeld metrics has been substituted by response body copying.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1526
2021-08-21 21:24:07 +03:00
..
discovery lib/promscrape/discovery/gce: add __meta_gce_interface_ipv4_<name> labels as in Prometheus 2.29 2021-08-03 15:51:45 +03:00
discoveryutils adds http_sd (#1399) 2021-06-22 13:42:09 +03:00
testdata lib/promauth: reload TLS certificates from disk on every mTLS connection as Prometheus does 2021-07-01 15:43:43 +03:00
client.go lib/promscrape: increase the duration for reading the full response in stream parsing mode 2021-06-14 12:29:46 +03:00
config_test.go lib/promauth: reload TLS certificates from disk on every mTLS connection as Prometheus does 2021-07-01 15:43:43 +03:00
config.go lib/promscrape: split docker and dockerswarm service discovery code bases, since they have very little in common 2021-06-25 13:22:16 +03:00
scraper.go lib/promscrape: stop scrapers for the removed targets before starting scrapers for the added targets 2021-08-17 01:00:40 +03:00
scrapework_test.go lib/promscrape: send stale markers for the previously scraped metrics on failed scrapes like Prometheus does 2021-08-18 22:00:46 +03:00
scrapework_timing_test.go app/vmagent: follow-up after fe445f753b 2021-08-05 09:51:00 +03:00
scrapework.go lib/promscrape: reduce memory and CPU usage when Prometheus staleness tracking is enabled for metrics from deleted / disappeared scrape targets 2021-08-21 21:24:07 +03:00
statconn.go all: make go vet happy 2021-03-17 00:48:44 +02:00
targets_response.qtpl lib/promscrape: restore red highlighting for DOWN targets at /targets page 2021-08-15 16:04:33 +03:00
targets_response.qtpl.go lib/promscrape: restore red highlighting for DOWN targets at /targets page 2021-08-15 16:04:33 +03:00
targetstatus.go lib/promscrape: show jobs with empty scrape targets on /targets page 2021-06-18 10:54:12 +03:00