summaryrefslogtreecommitdiff
path: root/internal/check.go
AgeCommit message (Collapse)Author
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>
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 federationPaul Buetow
2025-05-28add epoch to check statusPaul Buetow
2025-05-28fix unknown handlingPaul Buetow
2023-06-07restylePaul Buetow
2023-05-17add retry and retry interval check config optionsPaul Buetow
2023-04-25add DependsOnPaul Buetow
2023-04-19rename execute to runChecksPaul Buetow
2023-04-18split into main and internal package"Paul Buetow