<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">On 17.5.2019 13.46, Roel van Duijnhoven
via dovecot wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CABSXvv_e_qfepzbTYALAtv76cjuPXyww_1TYjknV6Ou0WiVJpQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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>
</blockquote>
<p><br>
</p>
<p>For the new metrics, we are working on exporting features, which
are not yet finished.</p>
<p>For old stats you can use carbon protocol.<br>
</p>
<p>Aki<br>
</p>
</body>
</html>