summaryrefslogtreecommitdiff
path: root/internal/state.go
AgeCommit message (Collapse)Author
2026-02-16fix: show OK checks regardless of stalenessv1.4.1Paul Buetow
The staleness filter was incorrectly hiding stale OK checks from the HTML report and email notifications. OK checks should always be shown since stale OK alerts are not concerning.
2026-02-08feat: add peer failover alertingv1.4.0Paul Buetow
Introduce peer URL monitoring with active/passive alert suppression, skip checks when passive, and bump version to v1.4.0. Co-authored-by: Cursor <cursoragent@cursor.com>
2026-01-22add SU: (suppressed) count to status summary linePaul Buetow
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22fix OK checks incorrectly shown in suppressed sectionPaul Buetow
OK checks should appear in "OK checks" section, not "Suppressed alerts". Suppression now only applies to non-OK checks (Critical, Warning, Unknown). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21add OnlyIfNotExists alert suppression featurePaul Buetow
Adds ability to suppress alerts during maintenance windows by checking for the existence of a file. When the file exists and is recent (within configured max age), matching alerts are excluded from email reports. Features: - Global PrometheusOnlyIfNotExists config for Prometheus alerts - Per-check OnlyIfNotExists config for individual checks - Configurable max age (default 86400s) for suppression file - New "Suppressed alerts" section in email and HTML reports - Suppressed checks excluded from counts and unhandled sections Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18add status page URL to email notificationsPaul Buetow
Include a configurable link to the HTML status page in email notifications. Defaults to https://gogios.buetow.org but can be customized via the StatusPageURL config option. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-18exclude OK status from stale alerts reportPaul Buetow
Stale OK alerts are not concerning and shouldn't clutter the stale alerts section. Only report stale alerts with warning/critical/unknown status. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10fix prometheus handlingPaul Buetow
2025-11-22more on federationPaul Buetow
2025-10-27feat: Add randomSpread and RunInterval to checksPaul Buetow
This commit introduces two new optional parameters to the check configuration: - `randomSpread`: This parameter allows specifying a random sleep time up to N seconds before a check is executed. This is useful to avoid all checks running at the same time. - `RunInterval`: This parameter defines the minimum interval in seconds between two executions of a check. This is useful if gogios is run more frequently than a specific check should be. The `README.md` has been updated to document these new features. fix: Fix deadlock when skipping checks This commit also fixes a deadlock that occurred when a check was skipped due to the `RunInterval` setting. The `inputWg.Done()` was not being called, causing the main goroutine to wait forever. build: Replace Taskfile with Magefile The `Taskfile.yml` has been replaced with a `Magefile.go` to manage the build process. This provides more flexibility and is more idiomatic for Go projects.
2025-06-01more on federatedPaul Buetow
2025-06-01more on federationPaul Buetow
2025-05-29also show last checked ago in stale reportPaul Buetow
2025-05-29can report stale alertsPaul Buetow
2025-05-28initial merge statePaul Buetow
2025-05-28add epoch to check statusPaul Buetow
2024-05-02add -force flagPaul Buetow
2023-06-18add vet and lint checking - fix some lint errorsPaul Buetow
2023-06-18create state dir if it doesnt exist yetPaul Buetow
2023-06-07restylePaul Buetow
2023-04-22print out when there were no status changes or there are no unhandled alerts"Paul Buetow
2023-04-22dont show status change for unhandled reportPaul Buetow
2023-04-20add renotifyPaul Buetow
2023-04-19refactor statePaul Buetow
2023-04-18split into main and internal package"Paul Buetow