roles/appserver: fix traefik alloy configuration

This commit is contained in:
2025-09-01 14:27:32 -07:00
parent be72a93c50
commit f029309e01

View File

@@ -80,12 +80,14 @@ in
environment.etc."alloy/traefik.alloy".text = ''
prometheus.scrape "traefik_scrape" {
targets = [
{"__address__" = "127.0.0.1:${toString traefikPrometheusPort}"},
]
forward_to = [prometheus.remote_write.default.receiver]
job_name = "traefik"
targets = [
{
"__address__" = "127.0.0.1:${toString traefikPrometheusPort}",
},
]
forward_to = [prometheus.remote_write.default.receiver]
job_name = "traefik"
}
'';
};