feat: fail fast when no monitoring targets configured
All checks were successful
check / check (push) Successful in 45s

This commit is contained in:
clawbot
2026-03-01 16:00:18 -08:00
parent 6ebc4ffa04
commit 792304e1e4
2 changed files with 30 additions and 4 deletions

View File

@@ -210,6 +210,12 @@ the following precedence (highest to lowest):
| `DNSWATCHER_METRICS_USERNAME` | Basic auth username for /metrics | `""` |
| `DNSWATCHER_METRICS_PASSWORD` | Basic auth password for /metrics | `""` |
**`DNSWATCHER_TARGETS` is required.** dnswatcher will refuse to start if no
monitoring targets are configured. A monitoring daemon with nothing to monitor
is a misconfiguration, so dnswatcher fails fast with a clear error message
rather than running silently. Set `DNSWATCHER_TARGETS` to a comma-separated
list of DNS names before starting.
### Example `.env`
```sh