AnnexGroup

Documentation

Dashboard and monitoring

The dashboard shows the state of the server and of your communication at a glance.

Widgets

  • CPU / memory / disk: utilisation as gauge and sparkline.
  • Queue: pending and failed messages.
  • Summary: received, sent, delivered and failed today; active users and agents; domains; total users; import jobs (pending/running/failed); security findings; archived messages.
  • Live log: current security findings from the self-audit.

Real-time stream

Metrics are updated every five seconds over Server-Sent Events (SSE). A red or amber alert banner appears automatically when a threshold is exceeded.

Prometheus export

The metrics are available in Prometheus text format at https://<your-domain>/metrics. Connect Grafana or another scraper to analyse long-term trends.

Since release 1.2.2 the endpoint only answers requests from the own network — loopback and private ranges; behind a reverse proxy the address seen via trusted_proxies counts. If a scraper outside the network should read it, set a metrics_token in config.yaml; the scraper sends it as the header Authorization: Bearer <token>.

Since release 1.2.13, /metrics also serves the values an external monitoring setup needs: free space in the data store, age of the last successful backup, result and time of the last restore test, remaining certificate lifetime and the time of the last authenticated retrieval as proof that the values are actually read. No metric contains credentials, mail content or addresses.

The package ships ready-made templates under monitoring/: alert rules for Prometheus (prometheus-alarme.yml) and a template for Zabbix 7 (zabbix-vorlage.yaml, HTTP agent against /metrics with the bearer token). The alerts cover: /ready not ready, space below 10 %, delivery queue above the limit, last backup older than 26 hours, restore test red, certificate shorter than 14 days. Store the metrics_token only in the collector.

Alert thresholds

  • CPU > 90 % (critical)
  • Memory > 90 % (critical)
  • Disk > 90 % (critical)
  • Pending messages > 100 (warning)
  • Failed messages > 100 (warning)
  • Critical security findings > 0 (critical)
  • Security warnings > 0 (warning)
  • Failed import jobs > 0 (warning)

Limits, connections and readiness

Since this version, /metrics also shows what limits the server under load:

  • Database pool: open and in-use connections, plus how often and how long requests had to wait for a free connection.
  • Connections per service: open, peak, accepted and rejected at the limit — per service.
  • Deliverers: deliveries in flight and all attempts since start.
  • Response times per area: a histogram for API, DAV, MCP and the web interface, plus response times for IMAP (by command group) and SMTP (by session section).

/ready answers the question a load balancer asks: can this server serve requests? It checks the database and the storage, nothing else — not the certificate, the queue or disk space. The answer is 200 or 503.

The same values are available in the administration on the page Limits and status (/admin/runtime, operator only) — with one sentence per value on what it means and what to do when it looks wrong.

When the server reaches a connection limit or the database pool is exhausted, the administrators receive a notification email at most once per hour and limit.

These metrics are verified on the project's own test bench. That a foreign monitoring tool reads the values is not yet evidenced with this release — the test with a real collector against a fresh installation follows on the test bench.

Something unclear or described wrong? Tell us — we will fix it. Your question shows us where the text falls short.