postfix_exporter/pkg-message

16 lines
418 B
Plaintext

[
{ type: install
message: <<EOM
For postfix_exporter to read maillog, you need to chown it to prometheus group:
chown :prometheus /var/log/maillog
Also configure newsyslog to apply these rights when rotating log:
/var/log/maillog root:prometheus 640 7 * @T00 JC
Create postfix_exporter logfile with:
touch /var/log/postfix_exporter.log && chown prometheus /var/log/postfix_exporter.log
EOM
}
]