You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
||6 months ago|
|lib||6 months ago|
|queue_exporter||6 months ago|
|.gitignore||11 months ago|
|Gemfile||11 months ago|
|Gemfile.lock||6 months ago|
|README.adoc||6 months ago|
|config.ru||6 months ago|
|gemset.nix||6 months ago|
|postfix_exporter.rb||11 months ago|
|postfix_exporter.service.erb||11 months ago|
|shell.nix||1 year ago|
Collects continuesly events from postfix and dovecot via journald.
Exports the collected event-counters and the currently count of queued messages.
If you only want to check the count of mails in queue, use the `queue_exporter` in the subdirectory.
It has lesser dependencies and a smaller footprint:
* No journald, no ffi, no puma
* ffi and puma need a compiler, which you do not need to install
* Instead of puma, use simple rackup, which provides a simpler webserver.
For nix, `nix-shell` knows any dependencies.
Any other: You need `libffi` and some gems:
apt install libffi
Run puma for testing and use curl for first fetch.
You should see the collected data. On first run, this code be very empty. Wait some minutes to have some emails.
journald should not drop loglines! TODO: /etc/systemd/journald.conf