global: scrape_interval: 15s evaluation_interval: 15s rule_files: - "rules/*.yml" scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] - job_name: 'api' static_configs: - targets: ['api:9091'] metrics_path: '/metrics' scrape_interval: 5s relabel_configs: - source_labels: [__address__] target_label: instance replacement: 'api' - job_name: 'trading_service' static_configs: - targets: ['trading_service:9092'] metrics_path: '/metrics' scrape_interval: 5s relabel_configs: - source_labels: [__address__] target_label: instance replacement: 'trading_service' - job_name: 'backtesting_service' static_configs: - targets: ['backtesting_service:9093'] metrics_path: '/metrics' scrape_interval: 10s relabel_configs: - source_labels: [__address__] target_label: instance replacement: 'backtesting_service' - job_name: 'ml_training_service' static_configs: - targets: ['ml_training_service:9094'] metrics_path: '/metrics' scrape_interval: 15s relabel_configs: - source_labels: [__address__] target_label: instance replacement: 'ml_training_service' # PostgreSQL metrics - job_name: 'postgres_exporter' static_configs: - targets: ['foxhunt-postgres-exporter:9187'] metrics_path: '/metrics' scrape_interval: 30s