Prometheus exporter for monitoring the Exim Mail Transfer Agent (MTA).
Like eximstats, the exim_prometheus_exporter
generates statistics from Exim's mainlog
file. It does not interact with Exim directly.
exim_prometheus_exporter -mainlog /path/to/mainlog
By default, metrics are provided on https://localhost:8443/metrics.
Type exim_prometheus_exporter -h
to see a list of command line options.
In order to access https metrics with self-signed certificates from the Prometheus server, add something like this to the server's prometheus.yml
configuration:
- job_name: "exim-server"
scrape_interval: "60s"
scheme: "https"
tls_config:
insecure_skip_verify: true
target_groups:
- targets: ['mail.example.com:8443']
Make sure Go is installed and the GOPATH
environment variable is set, then run
go get github.com/fstab/exim_prometheus_exporter
The executable will be created in $GOPATH/bin
.
This is just a proof-of-concept. Only rejected RCPT
messages are recognized, all other messages are not implemented yet.
If this turns out to be useful, let's build on this example and add more messages.