-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Apologies for attempting to attach the config file - many lists I'm on do
not approve of inlining such things.

Here are the contents of the file followed by the outputs.

############################################################
# /etc/dovecot/conf.d/10-stats.conf

metric imap_login_attempt_lusan.id.au {
        event_name = imap_command_finished 
        filter {
                name = LOGIN
                args = *@lusan.id.au*
        }
}

metric imap_login_lusan.id.au_failed {
        event_name = imap_command_finished 
        filter {
                name = LOGIN
                args = *@lusan.id.au*
                tagged_reply_state = NO
        }
}

metric imap_login_lusan.id.au_success {
        event_name = imap_command_finished 
        filter {
                name = LOGIN
                args = *@lusan.id.au*
                tagged_reply_state = OK
        }
}

metric imap_select_no {
  event_name = imap_command_finished
  filter {
    name = SELECT
    tagged_reply_state = NO
  }
}

metric imap_select_no_notfound {
  event_name = imap_command_finished
  filter {
    name = SELECT
    tagged_reply = NO*Mailbox doesn't exist:*
  }
}

metric imap_command_list {
        event_name = imap_command_finished
        filter {
                name = LIST
                tagged_reply_state = OK
        }
}

metric imap_command_select {
        event_name = imap_command_finished
        filter {
                name = SELECT
                tagged_reply_state = OK
        }
}

metric imap_command_search {
        event_name = imap_command_finished
        filter {
                name = SEARCH
                tagged_reply_stat = OK
        }
}

metric imap_command_fetch_ok {
        event_name = imap_command_finished
        filter {
                name = FETCH
                tagged_reply_stat = OK
        }
}

metric storage_http_gets {
  event_name = http_request_finished
  categories = storage
  filter {
    method = get
  }
}

service stats {
        unix_listener stats-reader {
                user = vmail
                group = vmail
                mode = 0660
        }

        unix_listener stats-writer {
                user = vmail
                group = vmail
                mode = 0660
        }
}

################################################################

# doveadm -f table stats dump
metric_name                    field    count sum     min  max    avg      
median stddev  %95                                                              
      
imap_login_attempt_lusan.id.au duration 0     0       0    0      0.00     0    
  0.00    0                                                                     
 
imap_login_lusan.id.au_failed  duration 0     0       0    0      0.00     0    
  0.00    0                                                                     
 
imap_login_lusan.id.au_success duration 0     0       0    0      0.00     0    
  0.00    0                                                                     
 
imap_select_no                 duration 2268  732275  89   22119  322.87   143  
  869.01  339                                                                   
 
imap_select_no_notfound        duration 2268  732275  89   22119  322.87   143  
  1496.38 340                                                                   
 
imap_command_list              duration 67    1195129 4847 36931  17837.75 
19407  6922.50 25823                                                            
      
imap_command_select            duration 6189  8190679 215  103397 1323.43  740  
  2511.17 2878                                                                  
 
imap_command_search            duration 0     0       0    0      0.00     0    
  0.00    0                                                                     
 
imap_command_fetch_ok          duration 0     0       0    0      0.00     0    
  0.00    0                                                                     
 
storage_http_gets              duration 0     0       0    0      0.00     0    
  0.00    0                                                                     
 

- -- 
Nikolai Lusan <niko...@lusan.id.au>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEVfd4GW6z4nsBxdLo4ZaDRV2VL6QFAlz0T+YACgkQ4ZaDRV2V
L6RfsxAArjv3GFGEj9S3Xm7Y/IYUQjcvH0TTgXfkTHBVBn6U5kh22vGs5N48pT5d
/7lhLSXTEoQBpZKP1b7WGlkxDYeZYklqQImrYhT5ua7VXl1Zic5JFCNdfvXQD1ZR
urr/BbkAgpmv2rfyQT3CsqDYsi8OZjwmtxKqN8C3HVZB5qFjpqarQzYCa5FZrhgO
71ONpOrrfio5mqIaIPQrOknzkRf8cGqqqGS6kU//T4ZVwzSrkWyzsWtqJsojVs5T
uhJmi/09Uoz1jGb5ATkKSE/3mzcCUWJgywE6XG1oz4GIAKyxFtfpLRsPjpR+B7Be
2u33RMunCcgK6mqm+dMGVmcXpxuH4/xTsbF/FK9QlwmeDSPdl8dk0+R8wWLoBbeG
eHi1QxVG09znM2YJu9VYsPys29MJk6aiTus565smZwZDOZOZFmLeIIQbR3ESNxMe
SRWp1CXMo0/JPt/3Y1P/CWgu80EpNpkFt4H36BVbCjt+cebjw56NIA1jgZQJb2xg
+E1bW7clrbnoXXlLXcwjXsctKcGhqxNlUt4tS/m24qaaAnpLWEsZqbvTgCgO2kxm
9SxgNB7H50+yXl6hi1HnHCAN+HPZ90Qyu28F+6KA3c3IL8KS/OvL2jszeFv+hBIv
573qhqq1wudy8l/YdDyD9KWRaQ1c9/C5oMp07Koj3+G9V+CZOoE=
=BNGU
-----END PGP SIGNATURE-----

Reply via email to