prometheus-postscreen-exporter exposes check results from Postfix' postscreen as Prometheus metrics by reading the systemd journal.
Disclaimer: This is the result of a hack-a-day and not considered ready for production. The author had never written a single line of Go before starting this project.
prometheus-postscreen-exporter is best run via systemd:
# prometheus-postscreen-exporter.service
[Unit]
Description=Prometheus exporter for Postfix postscreen
[Service]
ExecStart=/usr/bin/prometheus-postscreen-exporter
User=prometheus
Group=systemd-journal
Restart=always
ProtectSystem=full
[Install]
WantedBy=multi-user.target
Options can be set via arguments:
Flag | Description | Default |
---|---|---|
-web.listen-address |
Address to listen on for telemetry | :9101 |
-web.telemetry-path |
Path under which to expose metrics | /metrics |
Pull requests are always welcome. Feel free to report bugs or post questions using the Issues function on GitHub.
This project is published under the terms of the MIT License. See the file
LICENSE
for more information.