global: scrape_interval: 15s evaluation_interval: 15s # Alertmanager configuration alerting: alertmanagers: - static_configs: - targets: ['alertmanager:9093'] # Load rules once and periodically evaluate them rule_files: - 'alerts.yml' scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] - job_name: 'node' static_configs: - targets: ['host.docker.internal:9100'] - job_name: 'postgres' static_configs: - targets: ['postgres-exporter:9187'] - job_name: 'redis' static_configs: - targets: ['redis-exporter:9121'] # Métricas de aplicación expuestas por POS (gunicorn :5001) y dashboard (:5000) # en el host; se alcanzan desde el contenedor por el gateway del bridge docker. - job_name: 'nexus_pos' metrics_path: /metrics static_configs: - targets: ['172.17.0.1:5001'] - job_name: 'nexus_dashboard' metrics_path: /metrics static_configs: - targets: ['172.17.0.1:5000']