<div dir="ltr">Thank you for the hits, guys. We hook customized gen_event to error_logger like lager, and collect the crashed information. Also mnesia metrics are added. After some tests the code will be put to github :)<div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 1, 2017 at 4:32 PM, Roger Lipscombe <span dir="ltr"><<a href="mailto:roger@differentpla.net" target="_blank">roger@differentpla.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 28 February 2017 at 20:43, Anthony Molinaro<br>
<span class=""><<a href="mailto:anthonym@alumni.caltech.edu">anthonym@alumni.caltech.edu</a>> wrote:<br>
> I haven't done it, but isn't there a gen_event behind the error_logger you can somehow tap into to collect this?<br>
<br>
</span>lager[1] hooks into error_logger to convert process crashes, etc. into<br>
error reports. If you want specific stats, you could take a look at<br>
how it does it.<br>
<br>
Or you could do what we do, which is simply to convert the<br>
warning/error/etc. lager events into metrics, by using a custom lager<br>
backend. You lose the per-process stats, but you still get a good<br>
overview.<br>
<br>
[1]: <a href="https://github.com/erlang-lager/lager" rel="noreferrer" target="_blank">https://github.com/erlang-<wbr>lager/lager</a><br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Jack Tang<br><br><br><a href="http://www.linkedin.com/in/jacktang" target="_blank">http://www.linkedin.com/in/jacktang</a><br></div>
</div></div></div>