VictoriaMetrics/app/vmagent
Max Kotliar 79254126f1
vmagent/remotewrite: set content encoding header based on actual body
Improve remote write handling in vmagent by setting the
`Content-Encoding` header based on the actual request body, rather than
relying on configuration.

- Detects Zstd compression via the Zstd magic number.
- Falls back to Snappy if Zstd is not detected.
- Persistent queue may now contain mixed-encoding content.
- Add basic vmagent integration tests

Follow up on
https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5344 and
12cd32fd75.

Extracted from
https://github.com/VictoriaMetrics/VictoriaMetrics/pull/8462

Related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5301
2025-04-08 17:45:20 +02:00
..
common app/vmagent/common: use plain sync.Pool instead of a mix of sync.Pool with channel-based pool for PushCtx 2024-04-20 21:31:14 +02:00
csvimport lib/protoparser: rename lib/protoparser/common to lib/protoparser/protoparserutil 2025-03-18 16:40:06 +01:00
datadogsketches lib/protoparser: rename lib/protoparser/datadogutils to lib/protoparser/datadogutil for the sake of consistency for *util package naming 2025-03-26 17:13:36 +01:00
datadogv1 lib/protoparser: rename lib/protoparser/datadogutils to lib/protoparser/datadogutil for the sake of consistency for *util package naming 2025-03-26 17:13:36 +01:00
datadogv2 lib/protoparser: rename lib/protoparser/datadogutils to lib/protoparser/datadogutil for the sake of consistency for *util package naming 2025-03-26 17:13:36 +01:00
deployment all: suppress InvalidDefaultArgInFrom warning emitted by docker build when building Docker packages via make package-* command 2024-09-03 14:05:43 +02:00
graphite app/vlinsert: follow-up for 37ed1842ab 2025-03-15 00:11:58 +01:00
influx lib/protoparser: rename lib/protoparser/common to lib/protoparser/protoparserutil 2025-03-18 16:40:06 +01:00
multiarch app/*/multiarch: return back empty value for TARGETARCH 2024-09-06 18:15:22 +02:00
native lib/protoparser: rename lib/protoparser/common to lib/protoparser/protoparserutil 2025-03-18 16:40:06 +01:00
newrelic lib/protoparser: rename lib/protoparser/common to lib/protoparser/protoparserutil 2025-03-18 16:40:06 +01:00
opentelemetry lib/protoparser: rename lib/protoparser/common to lib/protoparser/protoparserutil 2025-03-18 16:40:06 +01:00
opentsdb app/vmagent: follow-up for 090cb2c9de 2023-11-25 12:13:39 +02:00
opentsdbhttp lib/protoparser: rename lib/protoparser/common to lib/protoparser/protoparserutil 2025-03-18 16:40:06 +01:00
prometheusimport lib/protoparser: rename lib/protoparser/common to lib/protoparser/protoparserutil 2025-03-18 16:40:06 +01:00
promremotewrite lib/protoparser: rename lib/protoparser/common to lib/protoparser/protoparserutil 2025-03-18 16:40:06 +01:00
remotewrite vmagent/remotewrite: set content encoding header based on actual body 2025-04-08 17:45:20 +02:00
static/css all: follow-up after 8edb390e21 2022-06-07 01:05:53 +03:00
vmimport lib/protoparser: rename lib/protoparser/common to lib/protoparser/protoparserutil 2025-03-18 16:40:06 +01:00
main.go app/vmagent: increase the default GOGC from 30 to 50 2025-04-01 21:08:55 +02:00
Makefile Add build support for loong64 () 2024-05-10 14:32:05 +02:00
README.md all: replace the outdated url https://docs.victoriametrics.com/vmagent.html with the new one - https://docs.victoriametrics.com/vmagent/ 2024-04-18 01:32:57 +02:00
vmagent.png app/vmagent: update docs 2020-02-25 00:09:53 +02:00

See vmagent docs here.

vmagent docs can be edited at docs/vmagent.md.