Re: Monitoring a Clojure app, possibly with New Relic

2013-12-28 Thread James Thornton
Here's what you need to do to get the New Relic plugin working with a 
Clojure/Pedestal app on Heroku.
 
It took some fiddling because there are several versions of docs floating 
around for doing this, but none of them were quite right.

See https://gist.github.com/espeed/8159198

- James


On Friday, December 13, 2013 9:46:00 AM UTC-6, Brad Koch wrote:

 I need to implement some performance monitoring and exception tracking for 
 my Clojure app.  My first thought was to just use New Relic.  I implemented 
 it according to Heroku's New Relic instructions for 
 Clojurehttps://devcenter.heroku.com/articles/newrelic#clojure-configuration.
  
  It initialized the dashboard successfully, but no data is ever sent.  I've 
 seen two otherhttps://groups.google.com/forum/#!topic/clojure/mfwIvW1KZAM 
 reports http://stackoverflow.com/q/13420912/425313 of no data being 
 received as well.  The logs note the capture of things such as SQL queries, 
 but the agent doesn't seem to send them in the report back.

 I filed a ticket with them, but their customer support has been awful; 
 they responded only once a week ago and have ignored requests for updates.

 Has anyone had this issue with New Relic on a Clojure app, and did you 
 find a way to resolve it?  Does anyone use something different for 
 monitoring that works well?


-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Monitoring a Clojure app, possibly with New Relic

2013-12-13 Thread Brad Koch
I need to implement some performance monitoring and exception tracking for 
my Clojure app.  My first thought was to just use New Relic.  I implemented 
it according to Heroku's New Relic instructions for 
Clojurehttps://devcenter.heroku.com/articles/newrelic#clojure-configuration. 
 It initialized the dashboard successfully, but no data is ever sent.  I've 
seen two other https://groups.google.com/forum/#!topic/clojure/mfwIvW1KZAM 
reports http://stackoverflow.com/q/13420912/425313 of no data being 
received as well.  The logs note the capture of things such as SQL queries, 
but the agent doesn't seem to send them in the report back.

I filed a ticket with them, but their customer support has been awful; they 
responded only once a week ago and have ignored requests for updates.

Has anyone had this issue with New Relic on a Clojure app, and did you find 
a way to resolve it?  Does anyone use something different for monitoring 
that works well?

-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Monitoring a Clojure app, possibly with New Relic

2013-12-13 Thread Sean Corfield
Although I can't answer for the New Relic approach on Heroku, I can
say that we happily use New Relic to monitor a Clojure app that runs
inside Tomcat, as well some standalone command line Clojure apps.

For the Tomcat app, we add -javaagent manually in
{tomcat}/bin/setenv.sh to point to a local folder containing the New
Relic agent JAR - and our New Relic config file, containing our
license key and application name etc. We also have that JAR as a
dependency and import it into code we want to specifically instrument.
See this blog post for details:

http://corfield.org/blog/post.cfm/instrumenting-clojure-for-new-relic-monitoring

The agent should report basic data without that additional level of
instrumentation but much depends on its ability to understand the
container in which your Clojure code runs. We did not get much detail
with the agent alone.

Our standalone apps use New Relic's metrics-publish JAR (not on Maven,
downloaded separately and installed in our Archiva repo), and do a
little trick for spinning off a monitoring probe thread, using some
custom code, essentially as a New Relic plugin. I'll try to make that
available as an open source project at some time but it's not high on
my list. If you're interested, contact me off list (sean at corfield
dot org) and I can share details.

Sean

On Fri, Dec 13, 2013 at 7:46 AM, Brad Koch bradkoch2...@gmail.com wrote:
 I need to implement some performance monitoring and exception tracking for
 my Clojure app.  My first thought was to just use New Relic.  I implemented
 it according to Heroku's New Relic instructions for Clojure.  It initialized
 the dashboard successfully, but no data is ever sent.  I've seen two other
 reports of no data being received as well.  The logs note the capture of
 things such as SQL queries, but the agent doesn't seem to send them in the
 report back.

 I filed a ticket with them, but their customer support has been awful; they
 responded only once a week ago and have ignored requests for updates.

 Has anyone had this issue with New Relic on a Clojure app, and did you find
 a way to resolve it?  Does anyone use something different for monitoring
 that works well?

 --
 --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with your
 first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.