Goliath server monitoring

26 views
Skip to first unread message

Valery Visnakov

unread,
Dec 21, 2011, 2:25:39 PM12/21/11
to Goliath.io
Is there a way to monitor Goliath server? Can it run with NewRelic
agent?

Adam Watson

unread,
Dec 21, 2011, 3:02:09 PM12/21/11
to golia...@googlegroups.com
Hi Valery,

Check out this thread: https://groups.google.com/group/goliath-io/browse_thread/thread/ee75acdbf76751c6

It is not possible to just include the Newrelic Agent and have it automagically report analytics like it does in Sinatra or Rails apps. However, I have had success in utilizing the trace middleware that Ilya mentions in the thread I linked to. I use the trace middleware to collect run times of all of the methods that are part of my various API endpoints. I manually start the NR Agent in my Goliath config, and then pass these run times to the Agent as custom metric data as the last step before returning a response to the user.

Hope this helps,
Adam

Ilya Grigorik

unread,
Dec 21, 2011, 3:07:25 PM12/21/11
to golia...@googlegroups.com
Check out this thread: https://groups.google.com/group/goliath-io/browse_thread/thread/ee75acdbf76751c6

It is not possible to just include the Newrelic Agent and have it automagically report analytics like it does in Sinatra or Rails apps. However, I have had success in utilizing the trace middleware that Ilya mentions in the thread I linked to. I use the trace middleware to collect run times of all of the methods that are part of my various API endpoints. I manually start the NR Agent in my Goliath config, and then pass these run times to the Agent as custom metric data as the last step before returning a response to the user.

Adam.. nice! It would be awesome to have this documented somewhere: wiki page, gist, whichever? If you have the time.. I'm sure New Relic guys would appreciate it as well.

ig

Adam Watson

unread,
Dec 21, 2011, 3:26:10 PM12/21/11
to golia...@googlegroups.com
Hi Ilya,

Sure, I can do that. In fact, I even have some custom middleware I wrote for handling the reporting part. Just need to clean the code up some, but I'm happy to add it to my fork and document what I can to the wiki docs. Might be after the holidays before I can get to it, though.

Cheers,
A

Ilya Grigorik

unread,
Dec 21, 2011, 3:28:25 PM12/21/11
to golia...@googlegroups.com
Sounds great, thanks Adam!

Justin Ball

unread,
Dec 21, 2011, 3:36:29 PM12/21/11
to golia...@googlegroups.com
I'd be interested in the code as well. Thanks for being willing to share!

Thanks,
Justin

Adam Watson

unread,
Jan 17, 2012, 6:29:26 PM1/17/12
to Goliath.io
Hey guys, finally back from holiday and getting back into things
again.

Ilya, I plan on creating an example project in my fork and issuing a
pull request to get the code in—if I also create a separate markdown
doc for documenting the example, will that be sufficient for inclusion
into the Goliath repo wiki if/when you'd like to pull it in?

Should be able to do this in the next couple of days... once I get
through this mountain of email :) I'll keep you posted.


Cheers,
Adam

On Dec 21 2011, 12:26 pm, Adam Watson <awat...@ngmoco.com> wrote:
> Hi Ilya,
>
> Sure, I can do that. In fact, I even have some custom middleware I wrote for handling the reporting part. Just need to clean the code up some, but I'm happy to add it to my fork and document what I can to the wiki docs. Might be after the holidays before I can get to it, though.
>
> Cheers,
> A
>
> On Dec 21, 2011, at 12:07 PM, Ilya Grigorik wrote:
>
>
>
>
>
>
>
> > Check out this thread:https://groups.google.com/group/goliath-io/browse_thread/thread/ee75a...
Reply all
Reply to author
Forward
0 new messages