#1128689 prometheus-alertmanager: Add Wants/After network.target

Package:
prometheus-alertmanager
Source:
prometheus-alertmanager
Description:
handle and deliver alerts created by Prometheus
Submitter:
Elrond
Date:
2026-02-22 14:51:02 UTC
Severity:
normal
Tags:
#1128689#5
Date:
2026-02-22 12:41:56 UTC
From:
To:
Hi,

prometheus-alertmanager needs network (absolute minimum:
loopback), so at a minimum add this to the service unit

	[Unit]
	...
	Wants=network.target
	After=network.target

If one runs prometheus-alertmanager in a cluster (which
even is the default: it listens for cluster connections),
it needs even more networking with proper IPs being
assigned to interfaces. So I'd highly recommend this:

	[Unit]
	...
	Wants=network.target
	After=network.target network-online.target

One could even go for a Wants with network-online.target,
but I think, it's good enough this way: Other more
important services will likely have the needed Wants.


Cheers

    Elrond

#1128689#10
Date:
2026-02-22 14:19:45 UTC
From:
To:
Oh,

just realized... the appended diff is completely unrelated!
Please ignore it!


Cheers

    Elrond