# Configuration Prometheus corrigée global: scrape_interval: 15s evaluation_interval: 15s external_labels: monitor: 'lions-portal-monitor' rule_files: - "rules/*rules.yml" - "alerts/*alerts.yml" alerting: alertmanagers: - static_configs: - targets: - 'alertmanager:9093' scrape_configs: # Application Quarkus metrics - job_name: 'quarkus' metrics_path: '/q/metrics' static_configs: - targets: ['quarkus-app:8080'] scrape_interval: 10s # Postgres Exporter metrics - job_name: 'postgres' static_configs: - targets: ['postgres-exporter:9187'] # Nginx metrics - job_name: 'nginx' static_configs: - targets: ['nginx-exporter:9113'] # Node Exporter metrics (system metrics) - job_name: 'node' static_configs: - targets: ['node-exporter:9100'] # Prometheus self-monitoring - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] # Nginx Status Page - job_name: 'nginx-status' metrics_path: /stub_status static_configs: - targets: ['nginx:80'] # Grafana metrics - job_name: 'grafana' static_configs: - targets: ['grafana:3000'] # Node Exporter Host metrics - job_name: 'node_exporter_host' static_configs: - targets: ['node-exporter:9100'] labels: instance: 'host'