Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add insight=true to ingest-storage log messages when data can't be ingested due to client errors #8194

Merged
merged 2 commits into from
May 28, 2024

Conversation

pstibrany
Copy link
Member

What this PR does

When ingest-storage is processing push requests from Kafka, client errors for push request cause that data cannot be ingested, and no retries are done. We want to report such errors to users, and we do that by using insight label.

This PR adds insight=true label to log messages about "client errors" to ingest-storage code.

Checklist

  • Tests updated.
  • [na] Documentation added.
  • [na] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [na] about-versioning.md updated with experimental features.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
@pstibrany pstibrany requested a review from a team as a code owner May 28, 2024 09:28
Copy link
Contributor

@gotjosh gotjosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please see my comment.

pkg/storage/ingest/pusher.go Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice tests.

Co-authored-by: gotjosh <josue.abreu@gmail.com>
@pstibrany pstibrany merged commit 8a49cf2 into main May 28, 2024
29 checks passed
@pstibrany pstibrany deleted the log-client-errors-with-insight-true branch May 28, 2024 10:44
pstibrany added a commit that referenced this pull request May 28, 2024
…gested due to client errors (#8194)

* Add insight=true label to log messages about client errors.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Update pkg/storage/ingest/pusher.go

Co-authored-by: gotjosh <josue.abreu@gmail.com>

---------

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Co-authored-by: gotjosh <josue.abreu@gmail.com>
@pstibrany pstibrany mentioned this pull request May 28, 2024
1 task
pstibrany added a commit that referenced this pull request May 28, 2024
…gested due to client errors (#8194) (#8202)

* Add insight=true label to log messages about client errors.



* Update pkg/storage/ingest/pusher.go



---------

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Co-authored-by: gotjosh <josue.abreu@gmail.com>
narqo pushed a commit to narqo/grafana-mimir that referenced this pull request Jun 6, 2024
…gested due to client errors (grafana#8194)

* Add insight=true label to log messages about client errors.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Update pkg/storage/ingest/pusher.go

Co-authored-by: gotjosh <josue.abreu@gmail.com>

---------

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Co-authored-by: gotjosh <josue.abreu@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants