VictoriaMetrics/app/vmagent/remotewrite
viperstars ab78f3c89d
app/vmagent/remotewrite: skip sending empty block to downstream server (#6241)
Occasionally, vmagent sends empty blocks to downstream servers. If a
downstream server returns an unexpected response, vmagent gets stuck in
a retry loop. While vmagent handles 400 and 409 errors, there are
various prometheus remote write implementations that return different
error codes. For example, vector returns a 422 error. To mitigate the
risk of vmagent getting stuck in a retry loop, it is advisable to skip
sending empty blocks to downstream servers.

Co-authored-by: hao.peng <hao.peng@smartx.com>
Co-authored-by: Zhu Jiekun <jiekun.dev@gmail.com>
Co-authored-by: hagen1778 <roman@victoriametrics.com>
(cherry picked from commit 3661373cc2)
2024-05-17 14:57:07 +02:00
..
client.go app/vmagent/remotewrite: skip sending empty block to downstream server (#6241) 2024-05-17 14:57:07 +02:00
pendingseries_test.go Exemplar support (#5982) 2024-05-10 13:14:17 +02:00
pendingseries_timing_test.go lib/prompbmarshal: switch to github.com/VictoriaMetrics/easyproto 2024-01-16 20:48:30 +02:00
pendingseries.go Exemplar support (#5982) 2024-05-10 13:14:17 +02:00
relabel_test.go app/vmagent/remotewrite: fix data race when extra labels are added to samples before sending them to multiple remote storage systems 2023-09-08 23:26:40 +02:00
relabel.go app/vmagent: removed deprecated -remoteWrite.multitenantURL flag support (#6253) 2024-05-13 16:49:33 +02:00
remotewrite_test.go Feature allow configuring disableOnDiskQueue and dropSamplesOnOverload per url (#6248) 2024-05-10 14:32:23 +02:00
remotewrite.go app/vmagent: add global aggregator (#6268) 2024-05-17 14:01:31 +02:00
statconn.go app/vmagent: support for DNS SRV urls at -remoteWrite.url, scrape target urls and service discovery urls 2024-04-17 20:56:23 +02:00
streamaggr.go app/vmagent: add global aggregator (#6268) 2024-05-17 14:01:31 +02:00