[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 <xinyulong@kuaishou.com>
This commit is contained in:
Ween 2020-07-03 21:49:37 +08:00 committed by Aliaksandr Valialkin
parent 8bb3622e9d
commit d28fb0baf9

View File

@ -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),
}