| ############################################################################## | |
| # BetterStack Uptime monitors for MaestroAI | |
| # | |
| # Import/sync via BetterStack Terraform provider or the BetterStack REST API. | |
| # Environment variable ALERT_EMAIL must be set before applying. | |
| ############################################################################## | |
| monitors: | |
| - name: MaestroAI API Health | |
| url: https://your-domain.com/api/health | |
| monitor_type: status | |
| check_frequency: 30 # seconds | |
| request_timeout: 15 | |
| regions: | |
| - us-east | |
| - eu-west | |
| expected_status_codes: | |
| - 200 | |
| alert_email: ${ALERT_EMAIL} | |
| recovery_period: 60 # seconds before marking recovered | |
| confirmation_period: 30 # seconds to confirm down before alerting | |
| paused: false | |
| - name: MaestroAI Frontend | |
| url: https://your-domain.com/ | |
| monitor_type: status | |
| check_frequency: 60 | |
| request_timeout: 15 | |
| regions: | |
| - us-east | |
| - eu-west | |
| expected_status_codes: | |
| - 200 | |
| alert_email: ${ALERT_EMAIL} | |
| recovery_period: 120 | |
| confirmation_period: 60 | |
| paused: false | |
| - name: Stripe Webhook | |
| url: https://your-domain.com/api/payment/webhook | |
| monitor_type: status | |
| http_method: POST | |
| check_frequency: 300 | |
| request_timeout: 30 | |
| regions: | |
| - us-east | |
| # A POST with no valid Stripe signature will return 400, not 5xx | |
| expected_status_codes: | |
| - 400 | |
| alert_email: ${ALERT_EMAIL} | |
| recovery_period: 180 | |
| confirmation_period: 60 | |
| paused: false | |
| - name: MaestroAI API Latency | |
| url: https://your-domain.com/api/health | |
| monitor_type: status | |
| check_frequency: 60 | |
| request_timeout: 10 | |
| expected_response_time: 2000 # milliseconds — alert if P95 > 2 s | |
| regions: | |
| - us-east | |
| - eu-west | |
| alert_email: ${ALERT_EMAIL} | |
| paused: false | |