From d28fb0baf955c79d6d01c42feaf03ee9699df3d2 Mon Sep 17 00:00:00 2001 From: Ween Date: Fri, 3 Jul 2020 21:49:37 +0800 Subject: [PATCH] [VMAlert] Fix error log when remoteWrite queue size is full (#602) * Fix Auto metrics relabeled errors * Finalize auto-genenated Labels * Fix Test Errors * fix error logs when queue is full Co-authored-by: xinyulong --- app/vmalert/remotewrite/remotewrite.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/vmalert/remotewrite/remotewrite.go b/app/vmalert/remotewrite/remotewrite.go index acb919ceb..f508fded7 100644 --- a/app/vmalert/remotewrite/remotewrite.go +++ b/app/vmalert/remotewrite/remotewrite.go @@ -95,6 +95,7 @@ func NewClient(ctx context.Context, cfg Config) (*Client, error) { baPass: cfg.BasicAuthPass, flushInterval: cfg.FlushInterval, maxBatchSize: cfg.MaxBatchSize, + maxQueueSize: cfg.MaxQueueSize, doneCh: make(chan struct{}), input: make(chan prompbmarshal.TimeSeries, cfg.MaxQueueSize), }