-
Notifications
You must be signed in to change notification settings - Fork 308
log response time to Librato #1569
Comments
Is it silly to suggest doing this instead of using New Relic (#1508)? |
Actually, this might work out great. Librato has a Heroku integration that works with Heroku logging: https://devcenter.heroku.com/articles/librato All we have to do is print specially-formed messages to stdout, and apparently Librato will pick those up and process them into metrics for us. That, I think, is cool. That's waaaaaay simpler than integrating New Relic. I'm testing this out on gittip.whit537.org. |
I'm talking to Librato in their Campfire. @librato-peter is walking me through configuring the non-Heroku Librato account I set up yesterday (#1567) for use w/ Heroku.
|
Use the same log drain for multiple Heroku apps (qa, prod), and append http://support.metrics.librato.com/knowledgebase/articles/47904-what-is-a-source- |
You can vary the source via stdout as well:
E.g.:
|
Okay! I've set up logging of requests per minute and response time in qa, with a public dashboard here: https://metrics.librato.com/share/dashboards/42hmoj9j?duration=3600&source=qa The same dashboard will show us prod when we start logging in prod. PR coming ... |
Looks great. But response time of 7s?? Mean time almost 1s :(. I take it that is not typical for production. |
Median in production looks like it's in the 10-20ms range. Our p95 and p99 are pretty bad though. Anyway, this is live now! 💃 https://metrics.librato.com/share/dashboards/42hmoj9j?duration=3600&source=production |
Why aren't we using https://metrics.librato.com/metrics/router.service instead? It is without work for us, supplied by default by heroku, understood by librato - for details see https://devcenter.heroku.com/articles/http-routing#heroku-router-log-format and also https://devcenter.heroku.com/articles/librato where they say:
I am in for anything we do not have to maintain :). |
Good find. I'd say let's add that as an additional instrument on the Application Health dashboard. Since we already have the internal response time metric it's work to remove it, and it'll be interesting to see how much time is eaten up by Heroku, no? If you'd prefer to back out the internal response time tracking lemme know. |
I've checked, the times are almost the same. The internal time tracking can be used in the future for identifying the slow pages. Lets deal with it then. |
Okay. |
Reticketed from #1567.
The text was updated successfully, but these errors were encountered: