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

Alertmanager: Update alertmanager to grafana fork #4796

Closed
wants to merge 9 commits into from

Conversation

yuri-tceretian
Copy link
Contributor

@yuri-tceretian yuri-tceretian commented Apr 20, 2023

What this PR does

This PR updates alertmanager to use the Grafana fork https://github.com/grafana/prometheus-alertmanager instead of the original repository. This contributes to the unification of Grafana and Mimir alert managers and is a prerequisite for migrating the Alertmanager codebase to https://github.com/grafana/alerting repository.

The forked version of Alertmanager adds a feature grafana/prometheus-alertmanager#31 that updates V2 API to expose some information about integrations. This required a small refactoring of the code.

Also, it required an update in merger logic, now it returns an alert with the greatest lastNotify. Considering the fact that usually, only one Alertmanager node handles notifications, this change makes the merger prefer alerts from that instance rather than one that was updated latest (which I think is correct behavior, because that alert was used to send notifications)

NOTE: Pull requests can be reviewed by commit.

Checklist

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

@CLAassistant
Copy link

CLAassistant commented Apr 20, 2023

CLA assistant check
All committers have signed the CLA.

@yuri-tceretian yuri-tceretian added the dependencies Pull requests that update a dependency file label Apr 20, 2023
@yuri-tceretian yuri-tceretian self-assigned this Apr 20, 2023
@yuri-tceretian yuri-tceretian force-pushed the yuri-tceretian/alertmanager-fork branch from 7676628 to 38f668d Compare April 22, 2023 01:09
@flxbk
Copy link
Contributor

flxbk commented Jun 5, 2023

The CHANGELOG has just been cut to prepare for the next Mimir release. Please rebase main and eventually move the CHANGELOG entry added / updated in this PR to the top of the CHANGELOG document. Thanks!

@yuri-tceretian yuri-tceretian deleted the yuri-tceretian/alertmanager-fork branch July 14, 2023 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants