[erlang-questions] Send VM metrics to Grafana

Roger Lipscombe roger@REDACTED
Wed Mar 1 09:32:57 CET 2017


On 28 February 2017 at 20:43, Anthony Molinaro
<anthonym@REDACTED> wrote:
> I haven't done it, but isn't there a gen_event behind the error_logger you can somehow tap into to collect this?

lager[1] hooks into error_logger to convert process crashes, etc. into
error reports. If you want specific stats, you could take a look at
how it does it.

Or you could do what we do, which is simply to convert the
warning/error/etc. lager events into metrics, by using a custom lager
backend. You lose the per-process stats, but you still get a good
overview.

[1]: https://github.com/erlang-lager/lager



More information about the erlang-questions mailing list