# 🛡️ AntiScam AI Pro - Configuración Prometheus # Monitoreo y métricas de la aplicación global: scrape_interval: 15s evaluation_interval: 15s # Reglas de alertas rule_files: - "alerts.yml" # Configuración de Alertmanager alerting: alertmanagers: - static_configs: - targets: - alertmanager:9093 # Trabajos de scraping scrape_configs: # Prometheus self-monitoring - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] # AntiScam AI aplicación - job_name: 'antiscam-ai' static_configs: - targets: ['antiscam-ai:7860'] metrics_path: '/metrics' scrape_interval: 30s scrape_timeout: 10s # PostgreSQL - job_name: 'postgres' static_configs: - targets: ['postgres-exporter:9187'] # Redis - job_name: 'redis' static_configs: - targets: ['redis-exporter:9121'] # Nginx - job_name: 'nginx' static_configs: - targets: ['nginx-exporter:9113'] # Node Exporter (métricas del sistema) - job_name: 'node' static_configs: - targets: ['node-exporter:9100'] # cAdvisor (métricas de contenedores) - job_name: 'cadvisor' static_configs: - targets: ['cadvisor:8080'] # Configuración remota de almacenamiento (opcional) # remote_write: # - url: "https://prometheus.example.com/api/v1/write" # basic_auth: # username: "user" # password: "password"