monitoring: fix prometheus → alertmanager loopback (IPv4 vs IPv6)

Alertmanager binds [::1]:9093 but Prometheus was dialing
127.0.0.1:9093 — connection refused, so alerts fired internally
but never reached Alertmanager. Switch the target to [::1]:9093
to match the bind.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
DannyDannyDanny 2026-05-10 16:47:37 +02:00
parent dc7895e3b2
commit e8158e6c0f

View file

@ -57,7 +57,7 @@ in {
];
alertmanagers = [{
static_configs = [{ targets = [ "127.0.0.1:9093" ]; }];
static_configs = [{ targets = [ "[::1]:9093" ]; }];
}];
alertmanager = {