Skip to content

Commit

Permalink
increment metric
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Elliott <[email protected]>
  • Loading branch information
joe-elliott committed Nov 5, 2024
1 parent 57f2ce3 commit f0364d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/ingester/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,8 @@ func (i *instance) rediscoverLocalBlocks(ctx context.Context) ([]*LocalBlock, er
err = b.Validate(ctx)
if err != nil && !errors.Is(err, common.ErrUnsupported) {
level.Error(log.Logger).Log("msg", "local block failed validation, dropping", "tenantID", i.instanceID, "block", id.String(), "error", err)
metricReplayErrorsTotal.WithLabelValues(i.instanceID).Inc()

err = i.local.ClearBlock(id, i.instanceID)
if err != nil {
return nil, fmt.Errorf("deleting invalid local block tenant %v block %v: %w", i.instanceID, id.String(), err)
Expand Down

0 comments on commit f0364d1

Please sign in to comment.