mostly fixes
[distro-setup] / filesystem / etc / systemd / system / prometheus-alertmanager.service.d / override.conf
1 # apparently alertmanager failes to start when the internet is down:
2 # Mar 10 13:20:09 kd prometheus-alertmanager[2719]: level=error ts=2022-03-10T18:20:09.907Z caller=main.go:243 msg="unable to initialize gossip mesh" err="create memberlist: Failed to get final advertise address: No private IP address found, and explicit IP not provided"
3
4 [Unit]
5 # needed to continually restart
6 StartLimitIntervalSec=0
7
8 [Service]
9 Restart=always
10 # time to sleep before restarting a service
11 RestartSec=300
12
13 # empty signifies to replace the existing value
14 ExecStart=
15 ExecStart=/usr/local/bin/alertmanager $ARGS