VictoriaMetrics/vendor/github.com
Aliaksandr Valialkin 09c388a8e4
lib/promscrape: use the standard net/http.Client instead of fasthttp.Client for scraping targets in non-streaming mode
While fasthttp.Client uses less CPU and RAM when scraping targets with small responses (up to 10K metrics),
it doesn't work well when scraping targets with big responses such as kube-state-metrics.
In this case it could use big amounts of additional memory comparing to net/http.Client,
since fasthttp.Client reads the full response in memory and then tries re-using the large buffer
for further scrapes.

Additionally, fasthttp.Client-based scraping had various issues with proxying, redirects
and scrape timeouts like the following ones:

- https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1945
- https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5425
- https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2794
- https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1017

This should help reducing memory usage for the case when target returns big response
and this response is scraped by fasthttp.Client at first before switching to stream parsing mode
for subsequent scrapes. Now the switch to stream parsing mode is performed on the first scrape
after reading the response body in memory and noticing that its size exceeds the value passed
to -promscrape.minResponseSizeForStreamParse command-line flag.
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5567

Overrides https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4931
2024-01-30 18:39:55 +02:00
..
alecthomas/units vendor: run make vendor-update 2023-12-11 10:48:47 +02:00
aws vendor: run make vendor-update 2024-01-26 22:59:59 +01:00
Azure/azure-sdk-for-go/sdk vendor: run make vendor-update 2024-01-26 22:59:59 +01:00
AzureAD/microsoft-authentication-library-for-go vendor: run make vendor-update 2024-01-16 22:48:46 +02:00
beorn7/perks app/vmctl: move vmctl code from github.com/VictoriaMetrics/vmctl 2021-02-01 01:18:39 +02:00
bmatcuk/doublestar/v4 vendor: run make vendor-update 2023-10-31 20:20:07 +01:00
cespare/xxhash/v2 vendor: make vendor-update 2022-12-05 01:02:06 -08:00
cheggaaa/pb/v3 vendor: run make vendor-update 2024-01-26 22:59:59 +01:00
cpuguy83/go-md2man/v2 vendor: run make vendor-update 2023-10-16 14:33:16 +02:00
davecgh/go-spew vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
dennwc/varint vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
fatih/color vendor: run make vendor-update 2023-11-13 18:54:33 +01:00
felixge/httpsnoop vendor: run make vendor-update 2023-11-13 18:54:33 +01:00
go-kit/log vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
go-logfmt/logfmt vendor: make vendor-update 2023-01-31 11:05:11 -08:00
go-logr vendor: run make vendor-update 2024-01-16 22:48:46 +02:00
gogo/protobuf vendor: run make vendor-update 2023-09-07 12:35:42 +02:00
golang vendor: make vendor-update 2023-03-12 03:14:09 -07:00
golang-jwt/jwt/v5 vendor: run make vendor-update 2023-12-11 10:48:47 +02:00
google vendor: run make vendor-update 2024-01-26 22:59:59 +01:00
googleapis vendor: run make vendor-update 2023-10-02 21:53:35 +02:00
grafana/regexp vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
hashicorp/go-version vendor: run make vendor-update 2024-01-26 22:59:59 +01:00
influxdata/influxdb vendor: run make vendor-update 2024-01-16 22:48:46 +02:00
jmespath/go-jmespath go.mod: update minimum Go version from Go 1.16 to Go 1.17 2021-12-22 12:39:22 +02:00
jpillora/backoff vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
json-iterator/go vendor: run make vendor-update 2023-09-07 12:35:42 +02:00
klauspost/compress vendor: run make vendor-update 2024-01-26 22:59:59 +01:00
kylelemons/godebug vendor: run make vendor-update 2023-07-07 00:05:50 -07:00
mattn vendor: run make vendor-update 2023-10-31 20:20:07 +01:00
modern-go vendor: run make vendor-update 2023-09-07 12:35:42 +02:00
mwitkow/go-conntrack vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
oklog/ulid app/vmctl: move vmctl code from github.com/VictoriaMetrics/vmctl 2021-02-01 01:18:39 +02:00
pkg vendor: run make vendor-update 2023-07-07 00:05:50 -07:00
pmezard/go-difflib vmctl: support of the remote read protocol (#3232) 2022-11-29 21:08:47 -08:00
prometheus vendor: run make vendor-update 2024-01-26 22:59:59 +01:00
rivo/uniseg vendor: make vendor-update 2023-02-21 18:07:26 -08:00
russross/blackfriday/v2 go.mod: update minimum Go version from Go 1.16 to Go 1.17 2021-12-22 12:39:22 +02:00
stretchr/testify vendor: run make vendor-update 2023-07-07 00:05:50 -07:00
urfave/cli/v2 vendor: run make vendor-update 2024-01-16 22:48:46 +02:00
valyala vendor: update github.com/valyala/gozstd from v1.19.1 to v1.20.1 2023-05-10 02:15:22 -07:00
VictoriaMetrics lib/promscrape: use the standard net/http.Client instead of fasthttp.Client for scraping targets in non-streaming mode 2024-01-30 18:39:55 +02:00
VividCortex/ewma go.mod: update minimum Go version from Go 1.16 to Go 1.17 2021-12-22 12:39:22 +02:00
xrash/smetrics vendor: run make vendor-update 2024-01-16 22:48:46 +02:00