Feuerlabs / exometer_core

Core components of exometer
Mozilla Public License 2.0
193 stars 121 forks source link

exometer_core crashing #95

Open grosscr opened 7 years ago

grosscr commented 7 years ago

We recently upgraded to elixir 1.4, and now our metrics no longer function. It appears that the supervisor keeps crashing:

2017-06-09 16:49:55 =CRASH REPORT====
  crasher:
    initial call: exometer_report:-spawn_reporter/2-fun-0-/0
    pid: <0.1587.0>
    registered_name: 'Elixir.ExometerStatix'
    exception error: {undef,[{'Elixir.ExometerStatix',exometer_init,[[{hostname,"mitstatsd1.cmmint.net"},{port,8125}]],[]},{exometer_report,reporter_init,2,[{file,"/home/deploymotron/uberrepo/deps/exometer_core/src/exometer_report.erl"},{line,1590}]},{exometer_report,'-spawn_reporter/2-fun-0-',2,[{file,"/home/deploymotron/uberrepo/deps/exometer_core/src/exometer_report.erl"},{line,1431}]},{proc_lib,init_p,3,[{file,"proc_lib.erl"},{line,232}]}]}
    ancestors: [exometer_report,exometer_core_sup,<0.1578.0>]
    messages: []
    links: []
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 610
    stack_size: 27
    reductions: 186
  neighbours:

We have tried using exometer and exometer_statix for the reporters to StatsD but nothing is working. Any chance we could get some more information around why this could be happening?

exometer_core commit: 09c2a9361c0295c977e441ef89382db964a64460

GalaxyGorilla commented 7 years ago

From a first glance I would guess that the module is not found. Have you tried to execute

ExometerStatix.exometer_init([{hostname,"mitstatsd1.cmmint.net"},{port,8125}])

to check if the module is loaded at all? Also hostname does not seem to be a valid argument, but there should be a fallback in the reporter lib for that.

grosscr commented 7 years ago

We ended up just ripping out exometer all together and replacing it with something else.