Skip to content

feat(alerting): Implement alert reminders - #1138

Merged
TwiN merged 21 commits into
TwiN:masterfrom
ViktorZieg:master
Aug 8, 2025
Merged

TwiN merged 21 commits into
TwiN:masterfrom
ViktorZieg:master

Conversation

@ViktorZieg

@ViktorZieg ViktorZieg commented Jun 18, 2025 •

Copy link
Copy Markdown
Contributor

Summary

Regarding this issue #379

The changes regarding this issue were made by @bugrakocabay

There is already a Pull Request open (#614), but since it has been inactive for a while, I resolved the merge conflicts, so we can get this feature.

Fixes #379

Supersedes #614

Checklist

  • Tested and/or added tests to validate that the changes work as intended, if applicable.
  • Updated documentation in README.md, if applicable.

@github-actions github-actions Bot added the area/alerting Related to alerting label Jun 18, 2025
@ViktorZieg
ViktorZieg marked this pull request as ready for review June 18, 2025 10:34
(cherry picked from commit 9b2161556bddf01d385f97dafac2515857190ae5)
@haydndup

haydndup commented Jul 9, 2025

Copy link
Copy Markdown

Would love this feature!

@onedr0p onedr0p mentioned this pull request Aug 4, 2025
2 tasks done

@TwiN TwiN left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Couple of small changes.

Comment thread README.md Outdated
Comment thread alerting/alert/alert.go Outdated
@ViktorZieg
ViktorZieg requested a review from TwiN August 4, 2025 17:32
Comment thread README.md Outdated
Comment thread alerting/alert/alert.go Outdated
@ViktorZieg
ViktorZieg requested a review from TwiN August 5, 2025 10:57
Comment thread watchdog/alerting.go
if alertProvider != nil {
logr.Infof("[watchdog.handleAlertsToTrigger] Sending %s alert because alert for endpoint with key=%s with description='%s' has been TRIGGERED", endpointAlert.Type, ep.Key(), endpointAlert.GetDescription())
var err error
alertType := "reminder"

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Good idea

@TwiN TwiN changed the title Feature: Repeating alerts feat(alerting): Implement reminders Aug 8, 2025
@TwiN TwiN changed the title feat(alerting): Implement reminders feat(alerting): Implement alert reminders Aug 8, 2025
@TwiN TwiN added the feature New feature or request label Aug 8, 2025
@TwiN
TwiN merged commit c374649 into TwiN:master Aug 8, 2025
@TwiN

TwiN commented Aug 8, 2025

Copy link
Copy Markdown
Owner

Thank you for the contribution!

@day1118

day1118 commented Aug 8, 2025

Copy link
Copy Markdown

Looks like the build failed @TwiN

@TwiN

TwiN commented Aug 9, 2025

Copy link
Copy Markdown
Owner

@day1118 Good catch. I re-ran it when it failed first, but seems like it had failed a 2nd time and I missed it. I'll have a look.

@TwiN

TwiN commented Aug 9, 2025

Copy link
Copy Markdown
Owner

It's taken care of. Has anybody had the opportunity to try it yet?

@TwiN TwiN mentioned this pull request Aug 11, 2025
alexlebens pushed a commit to alexlebens/infrastructure that referenced this pull request Aug 11, 2025
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/twin/gatus](https://github.com/TwiN/gatus) | minor | `v5.21.0` -> `v5.22.0` |

---

### Release Notes

<details>
<summary>TwiN/gatus (ghcr.io/twin/gatus)</summary>

### [`v5.22.0`](https://github.com/TwiN/gatus/releases/tag/v5.22.0)

[Compare Source](TwiN/gatus@v5.21.0...v5.22.0)

#### What's Changed

- feat(alerting): Implement alert reminders by [@&#8203;ViktorZieg](https://github.com/ViktorZieg) in TwiN/gatus#1138
- feat(metrics): add support for custom labels in Prometheus metrics by [@&#8203;appleboy](https://github.com/appleboy) in TwiN/gatus#979
- fix(metrics): improve Prometheus metrics registration by [@&#8203;appleboy](https://github.com/appleboy) in TwiN/gatus#1186
- perf: Cap RANDOM\_STRING\_N to 8182 by [@&#8203;TwiN](https://github.com/TwiN) in TwiN/gatus#1193
- docs: Add example for alerts\[].minimum-reminder-interval by [@&#8203;xconverge](https://github.com/xconverge) in TwiN/gatus#1187
- docs: Add section for gatus-sdk by [@&#8203;TwiN](https://github.com/TwiN) in TwiN/gatus#1189

#### New Contributors

- [@&#8203;ViktorZieg](https://github.com/ViktorZieg) made their first contribution in TwiN/gatus#1138
- [@&#8203;xconverge](https://github.com/xconverge) made their first contribution in TwiN/gatus#1187

**Full Changelog**: TwiN/gatus@v5.21.0...v5.22.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xLjMiLCJ1cGRhdGVkSW5WZXIiOiI0MS4xLjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImltYWdlIl19-->

Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/1194
Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net>
Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/alerting Related to alerting feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Repeating notifications

7 participants