Stats/Metrics in 2.3

Nikolai Lusan nikolai at lusan.id.au
Sun Jun 2 17:23:13 EEST 2019


-----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-----



More information about the dovecot mailing list