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

Alerting: Stop persisting silences and nflog to disk #84706

Merged
merged 7 commits into from
Mar 22, 2024

Conversation

JacobsonMT
Copy link
Member

What is this feature?

Stops persisting silence state and nflog state to disk.

Why do we need this feature?

With the bump to grafana/alerting, so no longer pass initial silence/nflog state to GrafanaAlertmanger via disk. With this change, we no longer need to persist the states to disk in addition to the kvstore.

Who is this feature for?

Developers.

Special notes for your reviewer:

  • Can be reviewed by commit, but the majority is in Stop persisting silences and nflog to disk, the others are refactorings.
  • cleanupOrphanLocalOrgState in MultiOrgAlertmanager no longer needs to remove files from disk.

@JacobsonMT JacobsonMT added this to the 11.0.x milestone Mar 19, 2024
@JacobsonMT JacobsonMT requested a review from a team March 19, 2024 03:49
@JacobsonMT JacobsonMT requested a review from a team as a code owner March 19, 2024 03:49
@JacobsonMT JacobsonMT requested review from rwwiv, yuri-tceretian, grobinson-grafana, diegommm, undef1nd and suntala and removed request for a team March 19, 2024 03:49
@JacobsonMT JacobsonMT force-pushed the jacobsonmt/stop-disk-persisting-silence-nflog branch from 30bf8fa to 32c9941 Compare March 20, 2024 15:48
Copy link
Contributor

@yuri-tceretian yuri-tceretian 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 I think names do not need to mention "file"

pkg/services/ngalert/notifier/alertmanager.go Outdated Show resolved Hide resolved
pkg/services/ngalert/notifier/alertmanager.go Show resolved Hide resolved
pkg/services/ngalert/notifier/alertmanager.go Outdated Show resolved Hide resolved
@JacobsonMT JacobsonMT force-pushed the jacobsonmt/stop-disk-persisting-silence-nflog branch from bde59ff to 5d25f08 Compare March 22, 2024 22:21
@JacobsonMT JacobsonMT enabled auto-merge (squash) March 22, 2024 22:25
@JacobsonMT JacobsonMT merged commit 0c3c5c5 into main Mar 22, 2024
12 checks passed
@JacobsonMT JacobsonMT deleted the jacobsonmt/stop-disk-persisting-silence-nflog branch March 22, 2024 22:37
@ashharrison90 ashharrison90 modified the milestones: 11.0.x, 11.1.x Mar 25, 2024
ashharrison90 pushed a commit that referenced this pull request Mar 26, 2024
With this change, we no longer need to persist silence/nflog states to disk in addition to the kvstore
ashharrison90 pushed a commit that referenced this pull request Mar 26, 2024
With this change, we no longer need to persist silence/nflog states to disk in addition to the kvstore
@ashharrison90 ashharrison90 modified the milestones: 11.1.x, 11.0.x Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants