diff --git a/templates/config.alloy.erb b/templates/config.alloy.erb index ed1126b..6f1909d 100644 --- a/templates/config.alloy.erb +++ b/templates/config.alloy.erb @@ -66,10 +66,8 @@ prometheus.scrape "scrape_system" { } <% if @ay_manage_ne == true -%> prometheus.scrape "node_exporter" { - targets = [ - { __address__ = "localhost:9100" }, - ] - forward_to = [prometheus.remote_write.prometheus.receiver] + targets = [{ __address__ = "localhost:9100" }] + forward_to = [prometheus.remote_write.prometheus.receiver] scrape_interval = "15s" } <% end -%>