summarylogtreecommitdiffstats
path: root/config.yml
diff options
context:
space:
mode:
authormatclab2018-08-23 15:54:41 +0200
committermatclab2018-08-23 15:54:41 +0200
commit8c69b661107af8f8b86526d0347bde02748c6478 (patch)
treeda1dffdc04c16e34f5b442835a2b68d8c886330e /config.yml
downloadaur-8c69b661107af8f8b86526d0347bde02748c6478.tar.gz
Initial revision
Diffstat (limited to 'config.yml')
-rw-r--r--config.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/config.yml b/config.yml
new file mode 100644
index 000000000000..5dfda1cc8400
--- /dev/null
+++ b/config.yml
@@ -0,0 +1,20 @@
+global:
+ config_version: 2
+input:
+ type: file
+ path: /var/log/exim/mainlog
+ readall: false # Read from the beginning of the file? False means we start at the end of the file and read only new lines.
+grok:
+ patterns_dir: /usr/lib/grok-exporter/patterns/
+ additional_patterns:
+ - 'EXIM_MESSAGE [a-zA-Z ]*'
+metrics:
+ - type: counter
+ name: exim_rejected_rcpt_total
+ help: Total number of rejected recipients, partitioned by error message.
+ match: '%{EXIM_DATE} %{EXIM_REMOTE_HOST} F=<%{EMAILADDRESS}> rejected RCPT <%{EMAILADDRESS}>: %{EXIM_MESSAGE:message}'
+ labels:
+ error_message: '{{.message}}'
+server:
+ host: localhost
+ port: 9144