How nyulibraries/aswa works
ASWA loads a whitelisted YAML application list, optionally selects one application by command-line name, performs HTTP health checks, and reports failures or pushes counters. Checks always probe the configured URL without following redirects; when expected content is configured, they also fetch the redirect-following landing page. In container runs, an entrypoint can post failing output to Slack instead of using metrics. The graph reflects documented behavior and shown calls; Slack delivery is documented in the README, while its implementation is not excerpted.
Main entry points: synthetic_checks.go Check orchestrator · metrics.go Check counters · application.go Application check · main.go Program entry
Components 14
Startup and configuration
- Program entry
main.go - Environment settings
pkg/config/env_vars.go - Config loader
pkg/config/config.go - Application definitions
config
Synthetic checks
- Check orchestrator
cmd/synthetic_checks.go - Application check
pkg/application/application.go
Results and notifications
- Check result output
pkg/application/application.go - Container notifier
entrypoint.sh
Metrics
- Check counters
pkg/metrics/metrics.go
Other components
- Operator
- Monitored endpoints
- Standard output
- Slack
- Prom Aggregation Gateway
Connections 15
- Operator → Program entry: runs
README.md - Program entry → Check orchestrator: starts checks
main.go - Check orchestrator → Environment settings: gets settings
cmd/synthetic_checks.go - Check orchestrator → Config loader: loads config
cmd/synthetic_checks.go - Config loader → Application definitions: reads YAML
pkg/config/config.go - Check orchestrator → Application check: runs each check
cmd/synthetic_checks.go - Application check → Monitored endpoints: probes and fetches
README.md - Application check → Check result output: formats status
pkg/application/application.go - Check orchestrator → Check counters: increments counters
cmd/synthetic_checks.go - Check counters → Environment settings: gets environment
pkg/metrics/metrics.go - Check orchestrator → Check counters: pushes metrics
cmd/synthetic_checks.go - Check counters → Prom Aggregation Gateway: pushes metrics
pkg/metrics/metrics.go - Check orchestrator → Standard output: writes results
cmd/synthetic_checks.go - Standard output → Container notifier: captures output
README.md - Container notifier → Slack: posts failures
README.md