Skip to content

Introduce AlertSnapshot and AlertsSnapshot to create a snapshot of the alert#3882

Closed
zecke wants to merge 2 commits intoprometheus:mainfrom
zecke:freyth-create-snapshot
Closed

Introduce AlertSnapshot and AlertsSnapshot to create a snapshot of the alert#3882
zecke wants to merge 2 commits intoprometheus:mainfrom
zecke:freyth-create-snapshot

Conversation

@zecke
Copy link
Contributor

@zecke zecke commented Jun 17, 2024

Introduce types.AlertSnapshot and types.AlertsSnapshot that keeps track of the original dispatch time and uses it for the Status() and Resolved() method. This makes sure the notification is consistent across retries and/or other delays.

This is in preparation to not zero out the EndsAt time for active alerts.

zecke added 2 commits June 17, 2024 22:12
Make sure that the alerts passed to notifyFunc are consistent regardless
of retries and other delays.

Signed-off-by: Holger Hans Peter Freyther <holger@freyther.de>
Change the AlertGroup to use the AlertsSnapshot and the Group call
to take the snapshot time. Make changes to accomodate this.

Signed-off-by: Holger Hans Peter Freyther <holger@freyther.de>
@zecke
Copy link
Contributor Author

zecke commented Sep 11, 2024

Any chance we can make progress here?

@zecke zecke closed this Dec 16, 2025
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.

1 participant