# Monitor Chatmail usage

**URL:** <https://forum.delta.chat/t/monitor-chatmail-usage/3393>\
**Category:** Chatmail Relays\
**Created:** [December 15, 2024, 11:05pm UTC](https://forum.delta.chat/t/monitor-chatmail-usage/3393 "2024-12-15T23:05:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dex](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@Dex](https://forum.delta.chat/u/Dex)\
**Post date:** [December 15, 2024, 11:05pm UTC](https://forum.delta.chat/t/monitor-chatmail-usage/3393/1 "2024-12-15T23:05:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [December 16, 2024, 10:24am UTC](https://forum.delta.chat/t/monitor-chatmail-usage/3393/2 "2024-12-16T10:24:28Z")

</div>

Some basic metric on the number of accounts is exposed at `/metrics`, e.g. [https://bcc.chat/metrics](https://bcc.chat/metrics)  
This I would like to remove at some point [Remove `/metrics` · Issue #431 · deltachat/chatmail · GitHub](https://github.com/deltachat/chatmail/issues/431) 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.

---

<div class="post-metadata">

**Author:** ![Dex](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/5e9695/32.png) [@Dex](https://forum.delta.chat/u/Dex)\
**Post date:** [December 19, 2024, 10:45pm UTC](https://forum.delta.chat/t/monitor-chatmail-usage/3393/3 "2024-12-19T22:45:31Z")

</div>

Großartig, vielen Dank!

---

<div class="post-metadata">

**Author:** ![r10s](https://forum.delta.chat/user_avatar/forum.delta.chat/r10s/32/1513_2.png) [@r10s](https://forum.delta.chat/u/r10s)\
**Post date:** [October 6, 2026, 3:20pm UTC](https://forum.delta.chat/t/monitor-chatmail-usage/3393/4 "2026-10-06T15:20:30Z")

</div>


