global: scrape_interval: 15s evaluation_interval: 15s rule_files: # - "first_rules.yml" # - "second_rules.yml" scrape_configs: - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] - job_name: 'auth-service' static_configs: - targets: ['auth-service:3001'] metrics_path: '/metrics' - job_name: 'api-service' static_configs: - targets: ['api-service:3000'] metrics_path: '/metrics' - job_name: 'postgres' static_configs: - targets: ['postgres:5432'] - job_name: 'redis' static_configs: - targets: ['redis:6379'] - job_name: 'nginx' static_configs: - targets: ['api-gateway:80']