Skip to content

[hf] create blacklist of numbers to exclude from healthchecks

aguestuser requested to merge hf-create-healthcheck-exclusion-list into main

context:

  • a number that has not been used for days is consistently failing healthcheck
  • this likely has to do with some subtle bug in signald that we do not care to investigate and -- since signalc is on the way -- do not have to worry about for very long!
  • this MR provides a short-run fix to blacklist a certain subset of channels from healthchecks (we can periodically send INFO to these channels to make sure they are okay, while not drowning in alert fatigue)

changes:

  • in .env: add NUMBERS_TO_EXCLUDE_FROM_HEALTHCHECK env var: a JSON-encoded array of channel phone numbers to exclude from healthchecks
  • in configs: parse this into a proper array (or provide an empty array if env var undefined)
  • in diagnostics#sendHealthchecks don't send healthchecks to any numbers in this list
Edited by aguestuser

Merge request reports