global: scrape_interval: 15s evaluation_interval: 15s external_labels: cluster: 'windows-devops' environment: 'development' # Règles d'alerte rule_files: # - "alerts.yml" # Configuration de scraping scrape_configs: # Scraper l'application FastAPI - job_name: 'fastapi-app' static_configs: - targets: ['app:8000'] labels: app: 'devops-app' component: 'backend' tier: 'application' # Scraper Prometheus lui-même - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] labels: component: 'monitoring' # Découverte de service Docker - job_name: 'docker' static_configs: - targets: ['host.docker.internal:9323'] metrics_path: /metrics scheme: http # Alerting (exemple) # alerting: # alertmanagers: # - static_configs: # - targets: []