VictoriaMetrics/app
Aliaksandr Valialkin 1bb529e23e
app/vmagent/remotewrite: follow-up for e3a756d82869f8c357b072f6e635ebfc7d65dd2c
- Document the fix
- Move the detection of VictoriaMetrics remoteWrite protocol from client.init() to newHTTPClient()
  This simplifies the fix to the following diff:

diff --git a/app/vmagent/remotewrite/client.go b/app/vmagent/remotewrite/client.go
index 099899c19..70b904af4 100644
--- a/app/vmagent/remotewrite/client.go
+++ b/app/vmagent/remotewrite/client.go
@@ -151,10 +151,6 @@ func newHTTPClient(argIdx int, remoteWriteURL, sanitizedURL string, fq *persiste
        }
        c.sendBlock = c.sendBlockHTTP

-       return c
-}
-
-func (c *client) init(argIdx, concurrency int, sanitizedURL string) {
        useVMProto := forceVMProto.GetOptionalArg(argIdx)
        usePromProto := forcePromProto.GetOptionalArg(argIdx)
        if useVMProto && usePromProto {
@@ -173,6 +169,10 @@ func (c *client) init(argIdx, concurrency int, sanitizedURL string) {
        }
        c.useVMProto = useVMProto

+       return c
+}
+
+func (c *client) init(argIdx, concurrency int, sanitizedURL string) {
2023-03-07 23:54:24 -08:00
..
victoria-metrics lib/netutil: fixes panic at proxy protocol (#3905) 2023-03-07 08:50:18 -08:00
vmagent app/vmagent/remotewrite: follow-up for e3a756d82869f8c357b072f6e635ebfc7d65dd2c 2023-03-07 23:54:24 -08:00
vmalert app/vmalert: do not wait for group start on removal (#3891) 2023-03-06 14:04:43 +01:00
vmauth lib/netutil: fixes panic at proxy protocol (#3905) 2023-03-07 08:50:18 -08:00
vmbackup all: add makefile rules for GOARCH=s390x for all the VictoriaMetrics components 2023-02-26 12:36:51 -08:00
vmbackupmanager doc: add vmbackupmanager monitoring section (#3605) 2023-01-05 16:03:06 +01:00
vmctl docs: follow up after 4b136abff8 (#3918) 2023-03-06 12:41:48 +01:00
vmgateway app/vmgateway: add new flag doc 2023-02-27 11:18:34 -08:00
vminsert app/vmagent: automatically detect whether the remote storage supports VictoriaMetrics remote write protocol 2023-02-23 17:36:55 -08:00
vmrestore all: add makefile rules for GOARCH=s390x for all the VictoriaMetrics components 2023-02-26 12:36:51 -08:00
vmselect app/vmselect/promql: fix panic when calculating aggr_func(rollup*()) 2023-02-27 11:48:27 -08:00
vmstorage lib/storage: follow-up for 39cdc546dd 2023-02-27 13:07:38 -08:00
vmui vmui: fix display of selected value in the selector (#3919) 2023-03-07 16:23:02 +01:00