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

No need to check alert state in sendAlerts() #4025

Conversation

pracucci
Copy link
Contributor

What this PR does:
While reviewing #4017, I've compared our SendAlerts() implementation with Prometheus one and I've noticed we do filter out pending alerts while Prometheus doesn't. The reason why Prometheus doesn't do it in its sendAlerts() is because pending alerts are now filtered out before calling it, so we can remove it from Cortex too. I've also took the opportunity to

Which issue(s) this PR fixes:
N/A

Checklist

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

@pracucci pracucci requested a review from jtlisi March 29, 2021 13:25
Copy link
Contributor

@jtlisi jtlisi left a comment

Choose a reason for hiding this comment

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

LGTM

@pracucci pracucci force-pushed the no-need-to-check-alert-state-in-send-alerts branch from ae2c5f3 to 2b1505d Compare March 29, 2021 14:39
@pracucci pracucci merged commit 43a9f83 into cortexproject:master Mar 29, 2021
@pracucci pracucci deleted the no-need-to-check-alert-state-in-send-alerts branch March 29, 2021 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants