# Wordly.art - Prometheus Configuration

global:
  scrape_interval: 15s
  evaluation_interval: 15s
  external_labels:
    monitor: 'wordly-homelab'
    environment: 'production'

rule_files:
  - 'alerts.yml'

scrape_configs:
  # Backend FastAPI
  - job_name: 'wordly-backend'
    static_configs:
      - targets: ['backend:8000']
    metrics_path: /metrics
    scrape_interval: 10s

  # Systeme (CPU, RAM, Disk, Reseau)
  - job_name: 'node'
    static_configs:
      - targets: ['node-exporter:9100']

  # Containers Docker
  - job_name: 'docker'
    static_configs:
      - targets: ['cadvisor:8080']

  # Prometheus lui-meme
  - job_name: 'prometheus'
    static_configs:
      - targets: ['localhost:9090']
