Go to file
Denis Knauf bbac461ec7 queue_exporter as subproject. checks only queue. lesser dependencies, lesser footprint. 2022-10-09 15:54:54 +02:00
lib prometheus#proxy_prefix for simplification of PrefixProxy.new. missing @verify for Postfix added. 2022-10-04 18:21:26 +02:00
queue_exporter queue_exporter as subproject. checks only queue. lesser dependencies, lesser footprint. 2022-10-09 15:54:54 +02:00
.gitignore collector splitted into dovecot, postfix and general files/classes. More unknown loglines eliminated. Dependency updates. 2022-05-19 14:02:17 +02:00
Gemfile collector splitted into dovecot, postfix and general files/classes. More unknown loglines eliminated. Dependency updates. 2022-05-19 14:02:17 +02:00
Gemfile.lock software upgrades (bundle and nix-shell) 2022-10-04 18:24:53 +02:00
README.adoc queue_exporter as subproject. checks only queue. lesser dependencies, lesser footprint. 2022-10-09 15:54:54 +02:00
config.ru domains with generic second-level-domains like ac.at. should be interpreted like toplevel domains. 2022-10-04 18:30:39 +02:00
gemset.nix software upgrades (bundle and nix-shell) 2022-10-04 18:24:53 +02:00
postfix_exporter.rb collector splitted into dovecot, postfix and general files/classes. More unknown loglines eliminated. Dependency updates. 2022-05-19 14:02:17 +02:00
postfix_exporter.service.erb postfix_exporter.service erb-template 2022-05-19 14:46:56 +02:00
shell.nix init 2022-04-06 00:31:39 +02:00

README.adoc

postfix_exporter
================

Collects continuesly events from postfix and dovecot via journald.
Exports the collected event-counters and the currently count of queued messages.

queue_exporter
==============

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.

Usage
-----

For nix, `nix-shell` knows any dependencies.

Any other:  You need `libffi` and some gems:

	apt install libffi
	bundle install

Run puma for testing and use curl for first fetch.

	puma

	curl http://localhost:9296/metrics

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