bootspring monitor
Production monitoring, hooks, and alerting for deployed applications.
Overview#
The monitor command helps set up and manage production monitoring with integrations for popular monitoring and alerting services.
Usage#
Loading code block...
Commands#
| Command | Description |
|---|---|
init | Initialize monitoring configuration |
status | Show monitoring status |
metrics | Collect current metrics |
providers | List available providers |
post-deploy | Run post-deploy hooks |
add-monitoring <id> | Add monitoring provider |
add-alert <id> | Add alert provider |
remove-monitoring <id> | Remove monitoring provider |
remove-alert <id> | Remove alert provider |
threshold <name> <value> | Set alert threshold |
Monitoring Providers#
| Provider | Description |
|---|---|
sentry | Error tracking and performance |
datadog | Infrastructure and APM |
newrelic | Application performance |
logrocket | Session replay |
axiom | Log management |
Alert Providers#
| Provider | Description |
|---|---|
slack | Slack notifications |
discord | Discord notifications |
pagerduty | On-call alerting |
email | Email notifications |
Examples#
Loading code block...
Configuration#
Monitoring configuration is stored in .bootspring/monitor/config.json:
Loading code block...
Alert Thresholds#
| Threshold | Default | Description |
|---|---|---|
error-rate | 0.01 | Error rate threshold (1%) |
response-time-p95 | 500 | P95 response time (ms) |
memory-usage | 0.8 | Memory usage threshold (80%) |
cpu-usage | 0.7 | CPU usage threshold (70%) |
Post-Deploy Hooks#
Hooks that run after deployment:
- Health Check - Verify deployment is healthy
- Smoke Tests - Run critical path tests
- Notify - Send deployment notification
- Metrics - Collect baseline metrics
Related Commands#
bootspring deploy- Deploymentbootspring health- Health checkbootspring telemetry- Analytics