diff options
author | matclab | 2018-08-23 15:54:41 +0200 |
---|---|---|
committer | matclab | 2018-08-23 15:54:41 +0200 |
commit | 8c69b661107af8f8b86526d0347bde02748c6478 (patch) | |
tree | da1dffdc04c16e34f5b442835a2b68d8c886330e /config.yml | |
download | aur-8c69b661107af8f8b86526d0347bde02748c6478.tar.gz |
Initial revision
Diffstat (limited to 'config.yml')
-rw-r--r-- | config.yml | 20 |
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 |