# Prometheus configuration for Synor Compute Layer
global:
  scrape_interval: 15s
  evaluation_interval: 15s

alerting:
  alertmanagers:
    - static_configs:
        - targets: []

rule_files: []

scrape_configs:
  # Prometheus self-monitoring
  - job_name: 'prometheus'
    static_configs:
      - targets: ['localhost:9090']

  # Compute Orchestrator
  - job_name: 'compute-orchestrator'
    static_configs:
      - targets: ['compute-orchestrator:17202']
    metrics_path: '/metrics'
    scrape_interval: 10s

  # CPU Workers
  - job_name: 'compute-workers-cpu'
    static_configs:
      - targets:
        - 'compute-worker-cpu-1:17210'
        - 'compute-worker-cpu-2:17211'
    metrics_path: '/metrics'
    scrape_interval: 10s

  # WASM Worker
  - job_name: 'compute-workers-wasm'
    static_configs:
      - targets: ['compute-worker-wasm:17212']
    metrics_path: '/metrics'
    scrape_interval: 10s

  # Spot Market
  - job_name: 'compute-spot-market'
    static_configs:
      - targets: ['compute-spot-market:17220']
    metrics_path: '/metrics'
    scrape_interval: 10s

  # Redis
  - job_name: 'redis'
    static_configs:
      - targets: ['compute-redis:6379']
    metrics_path: '/metrics'
    scrape_interval: 30s
