immortal-bnb/monitoring/prometheus.yml
Claude ac063b23a8
feat: Phase 7 Complete - Production Readiness & Security
Security:
- Add JWT authentication middleware
- Implement multi-tier rate limiting (API, trading, auth, read)
- Add input validation for all endpoints
- Integrate Helmet for HTTP security headers

Monitoring:
- Add Prometheus metrics (HTTP, trading, AI, memory, WebSocket)
- Create alert rules for critical conditions
- Add /metrics endpoint for scraping
- Configure Prometheus and Grafana

Testing:
- Add Jest test configuration
- Create unit tests (orchestrator, auth, memory)
- Add test scripts to package.json
- Configure coverage reporting

Deployment:
- Create production deployment script
- Add automated backup script
- Create rollback script
- Add environment setup script

Documentation:
- Create comprehensive production deployment guide
- Add Phase 7 completion summary
- Include troubleshooting procedures
- Add maintenance checklists

CI/CD:
- Update GitHub Actions workflow
- Add security scanning
- Configure automated testing
- Add deployment automation
2025-11-12 00:34:02 +00:00

49 lines
1.2 KiB
YAML

# Prometheus Configuration for Immortal AI Trading Bot
global:
scrape_interval: 15s # Scrape targets every 15 seconds
evaluation_interval: 15s # Evaluate rules every 15 seconds
external_labels:
monitor: 'immortal-trading-bot'
environment: 'production'
# Scrape configurations
scrape_configs:
# Backend API (TypeScript)
- job_name: 'backend-api'
static_configs:
- targets: ['backend:3001']
labels:
service: 'backend'
component: 'api-gateway'
metrics_path: '/metrics'
scrape_interval: 10s
# Python Microservice
- job_name: 'python-api'
static_configs:
- targets: ['python-api:5000']
labels:
service: 'python-api'
component: 'polymarket-agents'
metrics_path: '/health'
scrape_interval: 10s
# Node Exporter (system metrics)
- job_name: 'node-exporter'
static_configs:
- targets: ['node-exporter:9100']
labels:
service: 'node-exporter'
component: 'system-metrics'
# Alerting rules
rule_files:
- 'alerts.yml'
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets: ['alertmanager:9093']