Skip to content

fstab/exim_prometheus_exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exim_prometheus_exporter

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.

Usage

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']

Installation

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.

Status

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages