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

Fix cortex_ingester_ingested_exemplars_failures_total metric tracking when exemplars are discarded because OOO #7948

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

pracucci
Copy link
Collaborator

What this PR does

#7640 introduced a little regression: the metric cortex_ingester_ingested_exemplars_failures_total is not tracked anymore for exemplars discarded because OOO. This is misleading, because looking at the sum of successfully + failed ingested exemplars, you don't actually get the total number of exemplars processed. In this PR I fix it reverting back to the previous behaviour, and improving unit tests.

Which issue(s) this PR fixes or relates to

N/A

Checklist

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

… when exemplars are discarded because OOO

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Contributor

@krajorama krajorama left a comment

Choose a reason for hiding this comment

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

LGTM, makes sense, appreciate the comment in the code

@pracucci pracucci marked this pull request as ready for review April 23, 2024 08:53
@pracucci pracucci requested a review from a team as a code owner April 23, 2024 08:53
@pracucci pracucci merged commit 38ef803 into main Apr 23, 2024
29 checks passed
@pracucci pracucci deleted the fix-exemplars-ooo-metrc branch April 23, 2024 08:53
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