global: scrape_interval: 10s evaluation_interval: 10s rule_files: - /etc/prometheus/rules/*.yml scrape_configs: # Job 1: Monitora se Prometheus stesso รจ attivo - job_name: 'prometheus' static_configs: - targets: ['localhost:9090'] # Job 2: Scrape metriche di Alloy (self-monitoring) - job_name: 'alloy' static_configs: - targets: ['alloy:12345'] labels: instance: 'alloy' # NOTA: Le metriche dell'host (ex-Node Exporter) e OTLP arrivano via Remote Write da Alloy