Grafana Dashboard for Chatmail relays

Hey

I’m currently playing around with the metrics and creating a dashboard for Grafana. Nothing fancy, just a quick start so far.
Then I came across this Monitor Chatmail usage and
Remove `/metrics` · Issue #431 · chatmail/relay · GitHub
Now I’m curious, are there any changes coming soonish?

Comparing mtail and chatmail-metrics, 1 account has been created according to mtail and 40 according to chatmail-metrics.
I had a quick look under /usr/local/lib/chatmaild/venv/bin/chatmail-metrics, /home/vmail/mail/chatmail/ and /etc/mtail/delivered_mail.mtail but I haven’t done anything more yet.

mtail counts from the start of mtail process, while /metrics shows the total number of accounts. mtail counters are reset when mtail is restarted.

Normally if you poll mtail into prometheus, it will handle restarts of the counter and not miss added accounts.

If you are building a new dashboard, I recommend to poll mtail, it’s going to stay. E.g. plot rate(dkim_signed[$__rate_interval]) * 60 for “sent mails per minute”, derive something from created_nonci_accounts for the count/rate of created accounts etc.