|
| 1 | +# Observability |
| 2 | + |
| 3 | +Observability is the ability to understand a system's internal state by examining its external outputs, crucial for complex, modern software systems. |
| 4 | + |
| 5 | +`mailserver-admin` provides observability features for monitoring the mailserver components, enabling administrators to monitor service health, message processing statistics, and operational metrics through web-based dashboards. |
| 6 | + |
| 7 | +## Overview |
| 8 | + |
| 9 | +The observability features integrate with the Rspamd filter service and Dovecot mail delivery agent to collect and display real-time statistics and historical trends. These dashboards provide visibility into message processing, spam filtering effectiveness, authentication patterns, and mail delivery rates. |
| 10 | + |
| 11 | +## Rspamd Statistics |
| 12 | + |
| 13 | +The Rspamd Statistics dashboard displays metrics from the Rspamd controller service, providing insights into spam filtering operations and message processing. |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | +The dashboard includes: |
| 18 | + |
| 19 | +- **Service Status**: Health check indicator showing Rspamd controller availability and response time |
| 20 | +- **Summary Metrics**: Key performance indicators including: |
| 21 | + - Total messages scanned |
| 22 | + - Spam messages detected |
| 23 | + - Ham (clean) messages identified |
| 24 | + - Messages used for machine learning |
| 25 | + - Active connections to the service |
| 26 | +- **Throughput Chart**: Time-series visualization of message processing rates per minute, showing action distributions including rejections, soft rejections, subject rewrites, header additions, greylisting, and no-action messages. Supports time aggregation for day, week, month, and year views |
| 27 | +- **Action Distribution**: Donut chart showing the proportion of messages categorised by Rspamd actions (clean, rejected, temporarily rejected, probable spam, greylisted) |
| 28 | +- **Configuration Details**: Displays action thresholds and top symbols used in spam scoring |
| 29 | + |
| 30 | +## Dovecot Statistics |
| 31 | + |
| 32 | +The Dovecot Statistics dashboard presents metrics from the Dovecot mail delivery agent via the Doveadm HTTP API, focusing on authentication and mail delivery operations. |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +The dashboard provides: |
| 37 | + |
| 38 | +- **API Status**: Connection status and authentication verification for the Doveadm HTTP API, including last update timestamp |
| 39 | +- **Summary Metrics**: Overview cards showing: |
| 40 | + - Authentication successes |
| 41 | + - Authentication failures |
| 42 | + - Index operations count |
| 43 | +- **Authentication Rate Chart**: Time-series graph displaying authentication success and failure rates per minute, enabling identification of authentication patterns and potential security issues |
| 44 | +- **Mail Deliveries Chart**: Time-series visualization of mail delivery rates per minute, showing message throughput to user mailboxes |
| 45 | +- **Data Collection**: Charts are calculated from consecutive samples, with rates computed as deltas between measurements |
0 commit comments