Getting login stats

Michael Slusarz michael.slusarz at open-xchange.com
Thu Jul 11 16:33:42 EEST 2019


> I'm trying to get some IMAP auth stats on a Dovecot 2.3.6 instance, but whatever I declare in metric, it always show 0.

None of these auth_* requests exist in 2.3.6.


> I tried using the following metrics:
> 
> 
> --------------------------------
> metric auth_request_finished {
>     event_name = auth_request_finished
> }
> 
> metric auth_passdb_request_finished {
>     event_name = auth_passdb_request_finished
> }
> 
> metric auth_userdb_request_finished {
>     event_name = auth_userdb_request_finished
> }
> 
> metric auth_client_request_started {
>  event_name = auth_client_request_started
> }
> 
> metric auth_client_userdb_lookup_started {
>     event_name = auth_client_userdb_lookup_started
> }
> 
> metric auth_client_passdb_lookup_started {
>  event_name = auth_client_passdb_lookup_started
> }
> 
> metric auth_client_cache_flush_started {
>  event_name = auth_client_cache_flush_started
> }
> 
> metric imap_command_finished {
>     event_name = imap_command_finished
>     filter {
>                 name = LOGIN
>     }
> }
> --------------------------------
> 
> But even after many successful logins, doveadm reports 0 for all events:
> 
> metric_name                       field    count sum min max avg  median stddev %95                                                                                                  
> auth_request_finished             duration 0     0   0   0   0.00 0      0.00   0                                                                                                    
> auth_passdb_request_finished      duration 0     0   0   0   0.00 0      0.00   0                                                                                                    
> auth_userdb_request_finished      duration 0     0   0   0   0.00 0      0.00   0                                                                                                    
> auth_client_request_started       duration 0     0   0   0   0.00 0      0.00   0                                                                                                    
> auth_client_userdb_lookup_started duration 0     0   0   0   0.00 0      0.00   0                                                                                                    
> auth_client_passdb_lookup_started duration 0     0   0   0   0.00 0      0.00   0                                                                                                    
> auth_client_cache_flush_started   duration 0     0   0   0   0.00 0      0.00   0                                                                                                    
> imap_command_finished             duration 0     0   0   0   0.00 0      0.00   0


More information about the dovecot mailing list