// Aula 11 - Service Discovery # vim filesd.json [ { "targets": [ "host1:9100", "host2:9100" ], "labels": { "team": "infra", "job": "node" } }, { "targets": [ "host1:9090" ], "labels": { "team": "monitoring", "job": "prometheus" } } ] # vim /etc/prometheus/prometheus.yml scrape_configs: - job_name: arquivo file_sd_configs: - files: - '*.json' !!!! CUIDADO COM OS ESPAƇOS !!!!! # systemctl restart prometheus