postfix_exporter/pkg-message

16 lines
418 B
Plaintext
Raw Permalink Normal View History

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