It depends on whether you care about the status of postfix itself.  For 
systems which are just running postfix as a replacement for 
/usr/bin/sendmail, then it's only being used for outbound deliveries - e.g. 
cron and error reports.  In this instance, I suppose it could be 
interesting to measure the size of the queue, and count rejected mail - as 
you say, a textfile exporter would be straightforward.  Alternatively, 
using the systemd collector of node_exporter may be good enough to check 
that the postfix service is running.

Personally I don't run MTAs on servers in general: I install ssmtp and 
point it to a local mail relay.  Then there's nothing to monitor, apart 
from the central mail relay itself.  This also scales better with 
containers - if you have 20 containers on one machine you don't want 20 
MTAs running.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/c7eb018d-c9a8-4ad3-9230-80e43f0360b1o%40googlegroups.com.

Reply via email to