-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Greetings, So the changes to the stats modules between v2.2 and v2.3 have broken some of my monitoring. I am attempting to use the new method of gathering "metrics" from "events" - but the details in the documentation are a bit thin. I started with the examples provided at https://wiki2.dovecot.org/Statistics and tried to build from there with only moderate success. What I am trying to achieve is the monitoring of login attempts (with successes and failures as separate modules - as well as aborted attempts), user sessions an bytes transferred. All this for multiple virtual domains and users. I have attached my current /etc/dovecot/conf.d/10-stats.conf so people can see what I have attempted so far. Based on that file the output I get is: # doveadm 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 702 197998 89 13942 282.05 133 1247.14 278 imap_select_no_notfound duration 702 197998 89 13942 282.05 133 1330.67 285 imap_command_list duration 14 287397 17595 25823 20528.36 20060 2194.36 25823 imap_command_select duration 1593 2354698 355 81662 1478.15 743 4583.03 4460 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 Based on the metrics I have set I would expect to see entries in the first 2 lines at least, given that there are multiple users logged into the server from the monitored domain (or at least the domain I am trying to monitor to begin with). I am also not sure how to get the session and data transfer information out of the metrics/stats system. If anyone can help me I would appreciate it. Thanks - -- Nikolai Lusan <nikolai at lusan.id.au> -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEVfd4GW6z4nsBxdLo4ZaDRV2VL6QFAlzz29EACgkQ4ZaDRV2V L6QnIg/8CcB4V/69QSn+zqNhGNX2sHApoaGK0zCt7ITthOlDDVsdVKNT48hxJ3AR uEtoDQL9g3jcDJOQplsobDXmcs/Z6Po275T++8+CY0Bl5iqWO0/6g5LSvNDi6VlS VZzdLyDvAT0+oemaeTHgT/zPwx2waCrs84ZVwMCnuNVQKlE8l05gV2r6aLpgkRFf /Pc6zBwNEXGdthTcnowV2yPiYZkp87jaEl6+4RcHQcYQO1/Q/JEl38/iYlPWdVFZ NVOHpmzZdY9tGRhN0lqiUgivPLZu7gYyfzBeO6JHDOajLUNFW1NR7aKKhyALEOgM GZmjgSODzLjLw8CYx8iGnyMGRsEBDk+NLrJ1zjDqN+xIZkoUcnjkqwpNzurMIW4c kAkFDaPjquXu9eFy4T6V+r23p9E0z0IcWqTFfUyHkdctQApvkjLBFxoc35Abp1Yy I6LzGlGRmiV2Z2HNQYNM3n0w2O+tl4lDpLDN1UCialzfFO81fbHfopk/f9+RHt7b LHy1gTNrUwnLS+3Lobt5p179zNw3C9gtDMdgq355WC/B8jYYJGrw4Y0Jwh7WoyMF w1lPPEByeGTEl/P4zxegKz7oHL+DDBw9BdRdREJ3praUYAVtnMrZgJCJTS0qGh3Z 3m2wCF6yRSwGG8QkwsmoeIF2A6HwjnXcDWHWbOwkkDwh705BUXo=QfOl -----END PGP SIGNATURE-----
On Jun 2, 2019, at 8:23 AM, Nikolai Lusan via dovecot <dovecot at dovecot.org> wrote:> I have attached my current /etc/dovecot/conf.d/10-stats.confThe list does not allow attachments, so a link to the file somewhere like pastern or dropbox or whatever is needed for people to see the file. Or simply paste the file into the email body. -- I've never seen religious faith move mountains, but I've seen what it does to skyscrapers. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190602/259d88b9/attachment.html>
On Jun 2, 2019, at 8:36 AM, @lbutlr via dovecot <dovecot at dovecot.org> wrote:> somewhere like pastern or dropboxPastebin, even. -- "I am enclosing two tickets to the first night of my new play; bring a friend.... if you have one." - GB Shaw to Churchill "Cannot possibly attend first night, will attend second... if there is one." - Winston Churchill, in response. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190602/c692b7a4/attachment.html>
On June 2, 2019 10:36:11 AM EDT, "@lbutlr via dovecot" <dovecot at dovecot.org> wrote:> >On Jun 2, 2019, at 8:23 AM, Nikolai Lusan via dovecot ><dovecot at dovecot.org> wrote: >> I have attached my current /etc/dovecot/conf.d/10-stats.conf > >The list does not allow attachments, so a link to the file somewhere >like pastern or dropbox or whatever is needed for people to see the >file. Or simply paste the file into the email body.Actually, inline text is much preferred. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
-----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 <nikolai at 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-----