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#
bootspring monitor <command> [options]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#
1# Initialize monitoring
2bootspring monitor init
3
4# Check status
5bootspring monitor status
6
7# List available providers
8bootspring monitor providers
9
10# Add Sentry for error tracking
11bootspring monitor add-monitoring sentry
12
13# Add Slack for alerts
14bootspring monitor add-alert slack
15
16# Set error rate threshold
17bootspring monitor threshold error-rate 0.01
18
19# Run post-deploy hooks
20bootspring monitor post-deploy
21
22# Collect current metrics
23bootspring monitor metricsConfiguration#
Monitoring configuration is stored in .bootspring/monitor/config.json:
1{
2 "monitoring": ["sentry", "datadog"],
3 "alerts": ["slack"],
4 "thresholds": {
5 "error-rate": 0.01,
6 "response-time-p95": 500,
7 "memory-usage": 0.8
8 },
9 "hooks": {
10 "post-deploy": ["health-check", "notify"]
11 }
12}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