Grafana Widget

Migrating my private server monitoring from Munin to Prometheus I came across the need of a replacement for my plugin for tracking postscreen check results.

There are various popular exporters for Postfix (e.g. kumina/postfix_exporter and discourse/postfix-exporter) but unfortunately they all lack the ability to track postscreen.

Taking a look at their code I got the impression that what I was needing should not be too hard to accomplish using Go. So I gave it a try.

https://github.com/lynix/prometheus-postscreen-exporter

Given the fact that I had never seen (nor written) a single line of Go before, I'm pretty happy with the result. I'm sure an advanced Go developer would do many things differently but at the end of the day it gets the job done and, more importantly, it has been an entertaining one-day dive into the art.