Repository navigation
feat(alastor): post to Slack when Krater stops answering the edge ping - #112
Open
Adambomb210 wants to merge 1 commit into
Open
Adambomb210 wants to merge 1 commit into
Adambomb210 wants to merge 1 commit into
Conversation
krater-edge-ping counts each URL's failed minutes in its StateDirectory and, with a Slack incoming-webhook URL, posts after 3 in a row, every 60 while it lasts, and once when it answers again. Krater posts its own alerts, so it can't say it's down; this can. On once secrets/krater-edge-alert.age exists (recipients added to secrets.nix); until then nothing changes. The secret is declared only where agenix is, inside `config` so reading `options` can't recurse. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Krater posts its own alerts, so when weft or Krater is down nothing says so. alastor already pings
/healthz/edgeevery minute; this makes that ping alert.krater-edge-pingkeeps each URL's failed minutes in itsStateDirectory.secrets/krater-edge-alert.ageexists. This PR adds that file's recipients (jsp, alastor) tosecrets.nix. To turn it on, make the webhook (Slack app → Incoming Webhooks → the ops channel), then:age.secretsentry is declared only where agenix is (the edge test's bare system has none). It sits insideconfig, so readingoptionscan't recurse.Tested:
nix build .#checks.x86_64-linux.krater-weftpasses from a clean clone, with two new assertions (off without a webhook; reads the credential when set).Not covered: if alastor itself is down, nothing alerts.
🤖 Generated with Claude Code