Skip to content

Alertmanager to store fingerprint of configuration instead of structure #12087

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

yuri-tceretian
Copy link
Contributor

What this PR does

This PR improves multitenant Alertmanager to store a fingerprint of user configuration instead of a full structure. The structure uses this field to compare current configuration with one loaded from the storage and skip applying the configuration if it's not changed.
I decided to implement this function on my own and add necessary tests to assert the correctness of the fingerprint and protect for unintended modifications in future. The method uses approach that has been well tested in Grafana .

This PR is built on top of the refactoring #12052

@yuri-tceretian yuri-tceretian added component/alertmanager changelog-not-needed PRs that don't need a CHANGELOG.md entry labels Jul 14, 2025
@github-project-automation github-project-automation bot moved this to In review in Alerting Jul 14, 2025
Base automatically changed from yuri-tceretian/postable-api-template to main July 17, 2025 13:54
@yuri-tceretian yuri-tceretian force-pushed the yuri-tceretian/config-hash branch from 04f2a4a to 09ae47d Compare July 17, 2025 14:05
@yuri-tceretian yuri-tceretian force-pushed the yuri-tceretian/config-hash branch from 09ae47d to 67a7899 Compare July 17, 2025 19:20
@yuri-tceretian yuri-tceretian marked this pull request as ready for review July 17, 2025 19:47
@yuri-tceretian yuri-tceretian requested review from a team as code owners July 17, 2025 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-not-needed PRs that don't need a CHANGELOG.md entry component/alertmanager
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

1 participant