Add prometheus exporter for postfix and option postfix.metrics_address
This commit is contained in:
parent
83df531b00
commit
3162809647
4 changed files with 34 additions and 0 deletions
15
templates/prometheus-postfix-exporter.j2
Normal file
15
templates/prometheus-postfix-exporter.j2
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Private log file from Postfix to read and truncate. Configured in
|
||||
# /etc/rsyslog.d/prometheus-postfix-exporter.conf
|
||||
POSTFIXLOGFILE=/var/lib/prometheus/postfix-exporter/mail.log
|
||||
|
||||
# Extra arguments for the daemon.
|
||||
ARGS='--web.listen-address {{ postfix.metrics_address }}'
|
||||
|
||||
# Prometheus-postfix-exporter supports the following options:
|
||||
# --postfix.showq_path string
|
||||
# Path at which Postfix places its showq socket.
|
||||
# (default "/var/spool/postfix/public/showq")
|
||||
# --web.listen-address string
|
||||
# Address to listen on for web interface and telemetry. (default ":9154")
|
||||
# --web.telemetry-path string
|
||||
# Path under which to expose metrics. (default "/metrics")
|
||||
Loading…
Add table
Add a link
Reference in a new issue