From 249a78d2e828408cf67bcbcf2d556a6a23ed0bdd Mon Sep 17 00:00:00 2001 From: Callum Styan Date: Wed, 27 Nov 2024 09:53:59 -0800 Subject: [PATCH] log stream limit errors back to insights logging Signed-off-by: Callum Styan --- pkg/ingester/instance.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/ingester/instance.go b/pkg/ingester/instance.go index 62182c6b9daef..cdb28dedbae99 100644 --- a/pkg/ingester/instance.go +++ b/pkg/ingester/instance.go @@ -341,6 +341,7 @@ func (i *instance) onStreamCreationError(ctx context.Context, pushReqStream logp if i.customStreamsTracker != nil { i.customStreamsTracker.DiscardedBytesAdd(ctx, i.instanceID, validation.StreamLimit, labels, float64(bytes)) } + i.writeFailures.Log(i.instanceID, fmt.Errorf(validation.StreamLimitErrorMsg, labels, i.instanceID)) return nil, httpgrpc.Errorf(http.StatusTooManyRequests, validation.StreamLimitErrorMsg, labels, i.instanceID) }