Monitor Chatmail usage

Hi,

I just played around a little with a chatmail server and got it running.

Now I wonder how I can monitor the usage. Of course nothing invasive, just the number of accounts and the numbers of in- and outgoing messages.

I already tried the solutions I found on the internet but could not find any logs or receive other information about the status.

I installed the chatmail server on a Debian 12 VPS.

Dex

Some basic metric on the number of accounts is exposed at /metrics, e.g. https://bcc.chat/metrics
This I would like to remove at some point Remove `/metrics` · Issue #431 · deltachat/chatmail · GitHub but currently it exists.

For better monitoring there is mtail service. You can configure it by setting mtail_address = 127.0.0.1 and redeploying, then you can run curl http://127.0.0.1:3903/metrics on the server to get the metrics. These metrics are in OpenTelemetry format so can be polled by Prometheus, but Prometheus/Grafana/etc. you need to setup manually.

You can also see number of currently connected accounts by running doveadm who | wc -l on the server.

1 Like

Großartig, vielen Dank!