VictoriaMetrics/app
viperstars b2c0cd2c64
app/vmagent/remotewrite: skip sending empty block to downstream server ()
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)
Signed-off-by: hagen1778 <roman@victoriametrics.com>
2024-05-17 15:32:02 +02:00
..
victoria-logs lib/pushmetrics: wait until the background goroutines, which push metrics, are stopped at pushmetrics.Stop() 2024-01-16 23:18:29 +02:00
victoria-metrics lib/mergeset: do not panic on too long items passed to Table.AddItems() 2024-02-12 19:45:13 +02:00
vlinsert app/vlinsert/elasticsearch: add a command-line flag to provide ES version () 2023-08-11 06:52:57 -07:00
vlselect app/{vmselect,vlselect}: run make vmui-update vmui-logs-update after 86f1459ca6 2023-08-11 07:00:39 -07:00
vlstorage app/vlstorage: expose vl_data_size_bytes metric at /metrics page for tracking the on-disk data size (both indexdb and the data itself) 2023-07-31 07:56:53 -07:00
vmagent app/vmagent/remotewrite: skip sending empty block to downstream server () 2024-05-17 15:32:02 +02:00
vmalert vmalert: support any status code from the range 200-299 from alertmanager as successful () 2024-04-17 09:42:39 +02:00
vmauth Makefile: run go mod tidy with -compat=1.22 after 95222b2079 2024-02-12 22:47:43 +02:00
vmbackup Makefile: run go mod tidy with -compat=1.22 after 95222b2079 2024-02-12 22:47:43 +02:00
vmbackupmanager lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 13:18:08 +02:00
vmctl app/vmctl: properly close file descriptor in verify-block action () 2024-04-17 09:48:21 +02:00
vmgateway lib/license: cleanups and prettifications for log messages and docs related to licensing 2023-10-16 13:18:08 +02:00
vminsert app/{vmagent,vminsert}: follow-up for 434a5803e7 2024-02-29 18:09:15 +02:00
vmrestore Makefile: run go mod tidy with -compat=1.22 after 95222b2079 2024-02-12 22:47:43 +02:00
vmselect app/vmselect/promql: properly estimate the needed amounts of memory for executing aggregate function over rollup function in incremental mode 2024-05-12 10:18:22 +02:00
vmstorage app/vmstorage: deregister storage metrics before stopping the storage 2024-01-16 23:30:11 +02:00
vmui vmui: fix calendar display () 2024-05-17 15:30:42 +02:00