Check YAML validity of Alert files at evaluation time #94
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
At evaluation time, we need to check the YAML validity of the alert definition files, we should not wait for Alertmanager to tell us "sowwy" until we get a proper Nix DSL to write alerts.
YAML is too complicated to be used without a proper annoying
checkPhase
.Why use yaml in the first place? We could just write the same information as nix expresssion and do buitlins.toJSON in https://git.lix.systems/the-distro/infra/src/branch/main/services/monitoring/lgtm/mimir.nix#L63
I know it's not as good as having a module for the alerts or having something like dns.nix or nixos-dns just for alerts but it'd still be better then importing pure yaml and running a yaml linter over that.
@janik I'm fine with this as well, but it doesn't change much there's a
checkPhase
! :P