4
Stats plugin can be used to send statistics (CPU, disk usage, etc.) from mail
5
processes to the stats process. The stats process can later be queried what's
6
going on in the system. With imap_stats plugin you can get per-command level
7
statistics for IMAP commands.
12
---%<-------------------------------------------------------------------------
13
mail_plugins = $mail_plugins stats
15
mail_plugins = $mail_plugins imap_stats
18
# How often to send statistics to the stats process. (Must be specified or
21
# Track per-command statistics.
22
stats_track_cmds = yes
24
---%<-------------------------------------------------------------------------
26
Since the stats process tracks quite a lot of statistics, its memory usage has
27
to be limited by forgetting the more detailed stats first. These settings
28
configure how the memory usage it handled:
30
---%<-------------------------------------------------------------------------
31
stats_memory_limit = 16 M
33
stats_command_min_time = 1 mins
34
stats_domain_min_time = 12 hours
35
stats_ip_min_time = 12 hours
36
stats_session_min_time = 15 mins
37
stats_user_min_time = 1 hours
38
---%<-------------------------------------------------------------------------
43
The 'doveadm stats dump' can be used to output raw statistics data. Ideally
44
there would be a nice GUI that could be used to zoom around in the data, but
45
that's not implemented yet. For now there is an internal 'doveadm stats top'
46
command, but a much better one can be found as a perl script:stats-top.pl
47
[http://www.dovecot.org/tools/stats-top.pl], which also requires stats.pl
48
[http://www.dovecot.org/tools/stats.pl].
50
(This file was created from the wiki on 2013-11-24 04:42)