l2met icon indicating copy to clipboard operation
l2met copied to clipboard

heroku install from scratch using script causes I/O errors when posting to librato

Open jakeyr opened this issue 12 years ago • 4 comments

Hi-

I just installed a fresh heroku app running l2met using the tarball and setup script. After setting up the drain, I see l2met processing incoming requests in the logs, but no data in librato.

I am seeing these lines in the logs which makes me believe that the data posts to librato are failing:

2013-12-04T22:31:46.709885+00:00 app[web.1]: measure.librato.error [email protected] msg=Post https://metrics-api.librato.com/v1/metrics: read tcp 54.225.173.29:443: i/o timeout attempt=0

any ideas? i tested the credentials i supplied to the setup script by using command-line curl calls to the api and they worked fine, i was able to submit metrics and see them in librato.

thanks!

jakeyr avatar Dec 04 '13 22:12 jakeyr

Hello, @jakeyr. Did you know that Librato now runs l2met as a service? They have a bullet proof setup and unless you are just wanting to hack, I would highly recommend you use their service.

https://devcenter.heroku.com/articles/librato#custom-log-based-metrics

ryansmith3136 avatar Dec 06 '13 02:12 ryansmith3136

As a side note, I think I am going to make a note of this in the README.

ryansmith3136 avatar Dec 06 '13 02:12 ryansmith3136

Awesome, thanks for the tip, I'll switch to that.

Meanwhile, just to satisfy curiosity... any idea what I did wrong here?

Thanks!

-jake

jakeyr avatar Dec 06 '13 20:12 jakeyr

So the log line is reporting that the POST operation to librato's api timed out. You can increase the timeout on this operations via the outlet-ttl flag. (e.g. $ ./l2met -outlet-ttl=5s)

ryansmith3136 avatar Dec 14 '13 17:12 ryansmith3136