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#

CommandDescription
initInitialize monitoring configuration
statusShow monitoring status
metricsCollect current metrics
providersList available providers
post-deployRun 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#

ProviderDescription
sentryError tracking and performance
datadogInfrastructure and APM
newrelicApplication performance
logrocketSession replay
axiomLog management

Alert Providers#

ProviderDescription
slackSlack notifications
discordDiscord notifications
pagerdutyOn-call alerting
emailEmail notifications

Examples#

Loading code block...

Configuration#

Monitoring configuration is stored in .bootspring/monitor/config.json:

Loading code block...

Alert Thresholds#

ThresholdDefaultDescription
error-rate0.01Error rate threshold (1%)
response-time-p95500P95 response time (ms)
memory-usage0.8Memory usage threshold (80%)
cpu-usage0.7CPU usage threshold (70%)

Post-Deploy Hooks#

Hooks that run after deployment:

  1. Health Check - Verify deployment is healthy
  2. Smoke Tests - Run critical path tests
  3. Notify - Send deployment notification
  4. Metrics - Collect baseline metrics