VictoriaMetrics/lib/promscrape
Aliaksandr Valialkin d5622b32e2 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:17:26 +03:00
..
discovery lib/promscrape/discovery/gce: add __meta_gce_interface_ipv4_<name> labels as in Prometheus 2.29 2021-08-03 16:11:49 +03:00
discoveryutils adds http_sd (#1399) 2021-06-22 13:33:37 +03:00
testdata lib/promauth: reload TLS certificates from disk on every mTLS connection as Prometheus does 2021-07-01 15:27:47 +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: split docker and dockerswarm service discovery code bases, since they have very little in common 2021-06-25 13:20:20 +03:00
config_test.go lib/promauth: reload TLS certificates from disk on every mTLS connection as Prometheus does 2021-07-01 15:27:47 +03:00
scraper.go lib/promscrape: stop scrapers for the removed targets before starting scrapers for the added targets 2021-08-17 00:55:51 +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:17:26 +03:00
scrapework_test.go lib/promscrape: send stale markers for the previously scraped metrics on failed scrapes like Prometheus does 2021-08-18 21:59:03 +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