<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 12 Oct 2015, at 15:09, Roberto Ostinelli <<a href="mailto:roberto@widetag.com" class="">roberto@widetag.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thank you Ulf.​ Yes, I'm using exometer_report_graphite [1].<div class=""><br class=""></div><div class="">Unfortunately this means that I have no idea what happened, i.e. what would make its queue grow like that when a connection is unavailable.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">[1] <a href="https://github.com/Feuerlabs/exometer/blob/master/src/exometer_report_graphite.erl" class="">https://github.com/Feuerlabs/exometer/blob/master/src/exometer_report_graphite.erl</a></div></div>
</div></blockquote><br class=""></div><div>Well, the two potentially blocking operations it performs are gen_tcp:connect() (5-second timeout by default) and gen_tcp:send()</div><div><br class=""></div><div>If you want to create some form of buffering behavior, perhaps exometer_report_logger.erl might be useful.</div><div><br class=""></div><div>It’s a bit intricate, perhaps, but you can e.g. check the following code for ideas:</div><div><br class=""></div><div><a href="https://github.com/Feuerlabs/exometer_core/blob/master/test/exometer_report_SUITE.erl" class="">https://github.com/Feuerlabs/exometer_core/blob/master/test/exometer_report_SUITE.erl</a></div><div><a href="https://github.com/Feuerlabs/exometer_core/blob/master/test/exometer_test_udp_reporter.erl" class="">https://github.com/Feuerlabs/exometer_core/blob/master/test/exometer_test_udp_reporter.erl</a></div><div><br class=""></div><div>But I think that in general, the idea with metrics is that you push them off-host if possible, otherwise let it be, until a connection is re-established.</div><div><br class=""></div><div>BR,</div><div>Ulf W</div><br class=""><div apple-content-edited="true" class="">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div class=""><div class="">Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.</div><div class=""><a href="http://feuerlabs.com" class="">http://feuerlabs.com</a></div></div><div class=""><br class=""></div></span><br class="Apple-interchange-newline">

</div>
<br class=""></body></html>