add settings for postfix exporter
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
b2ace001f7
commit
bac7dbda24
15
roles/internalsmtp/files/prometheus-postfix-exporter
Normal file
15
roles/internalsmtp/files/prometheus-postfix-exporter
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/log/mail.log
|
||||
|
||||
# Extra arguments for the daemon.
|
||||
ARGS=''
|
||||
|
||||
# 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")
|
@ -24,6 +24,14 @@
|
||||
name:
|
||||
- prometheus-postfix-exporter
|
||||
|
||||
- name: Copy default nginx config
|
||||
ansible.builtin.copy:
|
||||
src: prometheus-postfix-exporter
|
||||
dest: /etc/default/prometheus-postfix-exporter
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: Enable and restart exporter daemon
|
||||
service:
|
||||
name: prometheus-postfix-exporter
|
||||
|
15
roles/smtpgateway/files/prometheus-postfix-exporter
Normal file
15
roles/smtpgateway/files/prometheus-postfix-exporter
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/log/mail.log
|
||||
|
||||
# Extra arguments for the daemon.
|
||||
ARGS=''
|
||||
|
||||
# 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")
|
@ -33,6 +33,14 @@
|
||||
name:
|
||||
- prometheus-postfix-exporter
|
||||
|
||||
- name: Copy default nginx config
|
||||
ansible.builtin.copy:
|
||||
src: prometheus-postfix-exporter
|
||||
dest: /etc/default/prometheus-postfix-exporter
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
||||
|
||||
- name: Enable and restart exporter daemon
|
||||
service:
|
||||
name: prometheus-postfix-exporter
|
||||
|
Loading…
Reference in New Issue
Block a user