Changeset View
Changeset View
Standalone View
Standalone View
net-mgmt/postfix_exporter/files/pkg-message.in
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
The postfix_exporter can monitor a postfix log file. This should NOT | |||||
be the system-wide maillog, as the exporter will repeatedly truncate | |||||
the file. To configure syslogd to additionally log maillog messages | |||||
to the default postfix_exporter input logfile, add the following | |||||
line to /etc/syslog.conf: | |||||
mail.info /var/log/postfix_exporter_input.log | |||||
The postfix_exporter will need to have permissions to read and write | |||||
this file: | |||||
touch /var/log/postfix_exporter_input.log | |||||
chown prometheus:prometheus /var/log/postfix_exporter_input.log | |||||
The postfix_exporer can monitor the postfix showq socket. To allow the | |||||
postfix_exporter to access this socket, add the prometheus user to the | |||||
maildrop group: | |||||
pw usermod prometheus -G maildrop | |||||
To run postfix_exporter, set the postfix_exporter_enable="YES" | |||||
rcvar and point your prometheus instance at port 9154. |