<div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I recently upgraded to the latest version of Dovecot, and want to use the newly introduced logging / event system. I want to fetch the statistics every couple of seconds, and push those to our logging platform. Metrics such as: number of IMAP commands, average time they took, etc.</div><div><br></div><div>However the metrics as reported by Dovecot continously increment. So I see two solutions:</div><div><ul><li>Our solution could keep track of the previous values. But that could also break if the statistics are reset for some reason (e.g. threshold reached).</li><li>My second thought was to use "stats -r". That <i>should</i> clear the statistics directly after fetching them. And thus, give a better picture. However I am not sure if this gives me actual useful results.</li></ul></div><div>Or is there maybe a better approach to fetch statistics that I overlooked?</div><div><br></div><div>Thanks a lot.<br></div><div><br></div><div>Best,</div><div>Roel van Duijnhoven</div><div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><div style="font-size:12.8px;color:rgb(80,0,80)"></div></div></div></div></div></div></div></div></div></div>