librelist archives

« back to archive

Setting up NewRelic on Nesta

Setting up NewRelic on Nesta

From:
David Long
Date:
2012-01-23 @ 17:11
I just finished setting up my new website at davejlong.com and I would like
to use New Relic to monitor the site's performance. I followed the
instructions from Heroku (where the site is hosted) and placed the
newrelic_rpm gem in my Gemfile and in my app.rb inside my theme I added the
require for the New Relic gem:

# Use the app.rb file to load Ruby code, modify or extend the models,
or# do whatever else you fancy when the theme is loaded.require
'newrelic_rpm'module Nesta  class App    # Uncomment the Rack::Static
line below if your theme has assets    # (i.e images or JavaScript).
 #    # Put your assets in themes/mobous/public/mobous.    #    use
Rack::Static, :urls => ["/mobous"], :root => "themes/mobous/public"
configure :production do      require 'newrelic_rpm'    end
...

New Relic sees that the app is setup, but nothing is being recorded in
the web interface.  It has been setup for the past 24 hours and the
New Relic website says it should take 2 minutes. Anyone have
experience with New Relic in Nesta?

-- 

Dave Long
Web Application Consultant

(203) 626-1809
www.davejlong.com

Re: [nesta] Setting up NewRelic on Nesta

From:
Wynn Netherland
Date:
2012-01-23 @ 17:46
Which Heroku stack are you on? If you're using Bamboo with the Varnish 
cache, Sinatra (and New Relic) will never see anything but the first page 
view.

---
Wynn Netherland
web: http://wynn.fm
twitter / skype / facebook: pengwynn
linkedin: http://linkedin.com/in/netherland



On Monday, January 23, 2012 at 11:11 AM, David Long wrote:

> I just finished setting up my new website at davejlong.com 
(http://davejlong.com) and I would like to use New Relic to monitor the 
site's performance. I followed the instructions from Heroku (where the 
site is hosted) and placed the newrelic_rpm gem in my Gemfile and in my 
app.rb inside my theme I added the require for the New Relic gem:
> 
> # Use the app.rb file to load Ruby code, modify or extend the models, or
# do whatever else you fancy when the theme is loaded. require 
'newrelic_rpm' module Nesta class App # Uncomment the Rack::Static line 
below if your theme has assets # (i.e images or JavaScript). # # Put your 
assets in themes/mobous/public/mobous. # use Rack::Static, :urls => 
["/mobous"], :root => "themes/mobous/public" configure :production do 
require 'newrelic_rpm' end
> ...
> 
> New Relic sees that the app is setup, but nothing is being recorded in 
the web interface. It has been setup for the past 24 hours and the New 
Relic website says it should take 2 minutes. Anyone have experience with 
New Relic in Nesta? -- 
> 
> Dave Long 
> Web Application Consultant
> 
> (203) 626-1809 
> www.davejlong.com (http://www.davejlong.com)


Re: [nesta] Setting up NewRelic on Nesta

From:
David Long
Date:
2012-01-23 @ 17:47
I'm on the Cedar stack.
On Jan 23, 2012 12:46 PM, "Wynn Netherland" <wynn.netherland@gmail.com>
wrote:

> Which Heroku stack are you on? If you're using Bamboo with the Varnish
> cache, Sinatra (and New Relic) will never see anything but the first page
> view.
>
> ---
> Wynn Netherland
> web: http://wynn.fm
> twitter / skype / facebook: pengwynn
> linkedin: http://linkedin.com/in/netherland
>
>
>
> On Monday, January 23, 2012 at 11:11 AM, David Long wrote:
>
> > I just finished setting up my new website at davejlong.com (
> http://davejlong.com) and I would like to use New Relic to monitor the
> site's performance. I followed the instructions from Heroku (where the site
> is hosted) and placed the newrelic_rpm gem in my Gemfile and in my app.rb
> inside my theme I added the require for the New Relic gem:
> >
> > # Use the app.rb file to load Ruby code, modify or extend the models, or
> # do whatever else you fancy when the theme is loaded. require
> 'newrelic_rpm' module Nesta class App # Uncomment the Rack::Static line
> below if your theme has assets # (i.e images or JavaScript). # # Put your
> assets in themes/mobous/public/mobous. # use Rack::Static, :urls =>
> ["/mobous"], :root => "themes/mobous/public" configure :production do
> require 'newrelic_rpm' end
> > ...
> >
> > New Relic sees that the app is setup, but nothing is being recorded in
> the web interface. It has been setup for the past 24 hours and the New
> Relic website says it should take 2 minutes. Anyone have experience with
> New Relic in Nesta? --
> >
> > Dave Long
> > Web Application Consultant
> >
> > (203) 626-1809
> > www.davejlong.com (http://www.davejlong.com)
>
>
>
>

Re: [nesta] Setting up NewRelic on Nesta

From:
Wynn Netherland
Date:
2012-01-23 @ 18:15
Hmmm. The only two things I can think of

1) Try playing with location of your require statement. The README says 
"in your Sinatra app, below the Sinatra require directive." For Nesta this
would be in your config.ru after the require 'nesta/app' line. I'm dubious
that this will work since you said that New Relic sees your app.

2) You may need to call NewRelic::Agent.manual_start from within your app.rb.

Outside of those two options, you might ping New Relic support:

E-mail support@newrelic.com, or post it to
support.newrelic.com (http://support.newrelic.com/)



Cheers, 

-- Wynn



On Monday, January 23, 2012 at 11:47 AM, David Long wrote:

> I'm on the Cedar stack. 
> On Jan 23, 2012 12:46 PM, "Wynn Netherland" <wynn.netherland@gmail.com 
(mailto:wynn.netherland@gmail.com)> wrote:
> > Which Heroku stack are you on? If you're using Bamboo with the Varnish
cache, Sinatra (and New Relic) will never see anything but the first page 
view.
> > 
> > ---
> > Wynn Netherland
> > web: http://wynn.fm
> > twitter / skype / facebook: pengwynn
> > linkedin: http://linkedin.com/in/netherland
> > 
> > 
> > 
> > On Monday, January 23, 2012 at 11:11 AM, David Long wrote:
> > 
> > > I just finished setting up my new website at davejlong.com 
(http://davejlong.com) (http://davejlong.com) and I would like to use New 
Relic to monitor the site's performance. I followed the instructions from 
Heroku (where the site is hosted) and placed the newrelic_rpm gem in my 
Gemfile and in my app.rb inside my theme I added the require for the New 
Relic gem:
> > > 
> > > # Use the app.rb file to load Ruby code, modify or extend the 
models, or # do whatever else you fancy when the theme is loaded. require 
'newrelic_rpm' module Nesta class App # Uncomment the Rack::Static line 
below if your theme has assets # (i.e images or JavaScript). # # Put your 
assets in themes/mobous/public/mobous. # use Rack::Static, :urls => 
["/mobous"], :root => "themes/mobous/public" configure :production do 
require 'newrelic_rpm' end
> > > ...
> > > 
> > > New Relic sees that the app is setup, but nothing is being recorded 
in the web interface. It has been setup for the past 24 hours and the New 
Relic website says it should take 2 minutes. Anyone have experience with 
New Relic in Nesta? --
> > > 
> > > Dave Long
> > > Web Application Consultant
> > > 
> > > (203) 626-1809 (tel:%28203%29%20626-1809)
> > > www.davejlong.com (http://www.davejlong.com) (http://www.davejlong.com)
> > 
> 


Re: [nesta] Setting up NewRelic on Nesta

From:
Glenn Gillen
Date:
2012-01-24 @ 22:53
If you're deploying to the Cedar stack you'll also need to provide 
config/newrelic.yml. Here's an example from one of my apps:

https://gist.github.com/1673249

Hope that helps,

G

On 23 Jan 2012, at 10:15, Wynn Netherland wrote:

> Hmmm. The only two things I can think of
> 
> 1) Try playing with location of your require statement. The README says 
"in your Sinatra app, below the Sinatra require directive." For Nesta this
would be in your config.ru after the require 'nesta/app' line. I'm dubious
that this will work since you said that New Relic sees your app.
> 
> 2) You may need to call NewRelic::Agent.manual_start from within your app.rb.
> 
> Outside of those two options, you might ping New Relic support:
> 
> E-mail support@newrelic.com, or post it to
> support.newrelic.com (http://support.newrelic.com/)
> 
> 
> 
> Cheers, 
> 
> -- Wynn
> 
> 
> 
> On Monday, January 23, 2012 at 11:47 AM, David Long wrote:
> 
>> I'm on the Cedar stack. 
>> On Jan 23, 2012 12:46 PM, "Wynn Netherland" <wynn.netherland@gmail.com 
(mailto:wynn.netherland@gmail.com)> wrote:
>>> Which Heroku stack are you on? If you're using Bamboo with the Varnish
cache, Sinatra (and New Relic) will never see anything but the first page 
view.
>>> 
>>> ---
>>> Wynn Netherland
>>> web: http://wynn.fm
>>> twitter / skype / facebook: pengwynn
>>> linkedin: http://linkedin.com/in/netherland
>>> 
>>> 
>>> 
>>> On Monday, January 23, 2012 at 11:11 AM, David Long wrote:
>>> 
>>>> I just finished setting up my new website at davejlong.com 
(http://davejlong.com) (http://davejlong.com) and I would like to use New 
Relic to monitor the site's performance. I followed the instructions from 
Heroku (where the site is hosted) and placed the newrelic_rpm gem in my 
Gemfile and in my app.rb inside my theme I added the require for the New 
Relic gem:
>>>> 
>>>> # Use the app.rb file to load Ruby code, modify or extend the models,
or # do whatever else you fancy when the theme is loaded. require 
'newrelic_rpm' module Nesta class App # Uncomment the Rack::Static line 
below if your theme has assets # (i.e images or JavaScript). # # Put your 
assets in themes/mobous/public/mobous. # use Rack::Static, :urls => 
["/mobous"], :root => "themes/mobous/public" configure :production do 
require 'newrelic_rpm' end
>>>> ...
>>>> 
>>>> New Relic sees that the app is setup, but nothing is being recorded 
in the web interface. It has been setup for the past 24 hours and the New 
Relic website says it should take 2 minutes. Anyone have experience with 
New Relic in Nesta? --
>>>> 
>>>> Dave Long
>>>> Web Application Consultant
>>>> 
>>>> (203) 626-1809 (tel:%28203%29%20626-1809)
>>>> www.davejlong.com (http://www.davejlong.com) (http://www.davejlong.com)
>>> 
>> 
> 
> 
> 

Re: [nesta] Setting up NewRelic on Nesta

From:
David Long
Date:
2012-01-24 @ 23:56
Glenn I did add my newrelic.yml file, but I still don't get any graph
information.  I contacted NewRelic support and they gave me:

Howdy David,

Right now we don't provide automatic instrumentation of Nesta, and so we
most likely are not instrumenting any of the method calls. If you would
like to instrument it yourself, you're welcome to use using the Ruby Agent
API:

http://newrelic.com/docs/ruby/ruby-agent-api

Please let me know if you have any further questions or if I missed
something!

Best,
Seve


On Tue, Jan 24, 2012 at 5:53 PM, Glenn Gillen <glenn@rubypond.com> wrote:

> If you're deploying to the Cedar stack you'll also need to provide
> config/newrelic.yml. Here's an example from one of my apps:
>
> https://gist.github.com/1673249
>
> Hope that helps,
>
> G
>
> On 23 Jan 2012, at 10:15, Wynn Netherland wrote:
>
> Hmmm. The only two things I can think of
>
> 1) Try playing with location of your require statement. The README says
> "in your Sinatra app, below the Sinatra require directive." For Nesta this
> would be in your config.ru after the require 'nesta/app' line. I'm
> dubious that this will work since you said that New Relic sees your app.
>
> 2) You may need to call NewRelic::Agent.manual_start from w ithin your
> app.rb.
>
>
> Outside of those two options, you might ping New Relic support:
>
> E-mail support@newrelic.com, or post it to
> support.newrelic.com (http://support.newrelic.com/)
>
>
>
> Cheers,
>
> -- Wynn
>
>
>
> On Monday, January 23, 2012 at 11:47 AM, David Long wrote:
>
> I'm on the Cedar stack.
>
> On Jan 23, 2012 12:46 PM, "Wynn Netherland" <wynn.netherland@gmail.com (
> mailto:wynn.netherland@gmail.com <wynn.netherland@gmail.com>)> wrote:
>
> Which Heroku stack are you on? If you're using Bamboo with the Varnish
> cache, Sinatra (and New Relic) will never see anything but the first page
> view.
>
>
> ---
>
> Wynn Netherland
>
> web: http://wynn.fm
>
> twitter / skype / facebook: pengwynn
>
> linkedin: http://linkedin.com/in/netherland
>
>
>
>
> On Monday, January 23, 2012 at 11:11 AM, David Long wrote:
>
>
> I just finished setting up my new website at davejlong.com (
> http://davejlong.com) (http://davejlong.com) and I would like to use New
> Relic to monitor the site's performance. I followed the instructions from
> Heroku (where the site is hosted) and placed the newrelic_rpm gem in my
> Gemfile and in my app.rb inside my theme I added the require for the New
> Relic gem:
>
>
> # Use the app.rb file to load Ruby code, modify or extend the models, or #
> do whatever else you fanc y when the theme is loaded. require
> 'newrelic_rpm' module Nesta class App # Uncomment the Rack::Static line
> below if your theme has assets # (i.e images or JavaScript). # # Put your
> assets in themes/mobous/public/mobous. # use Rack::Static, :urls =>
> ["/mobous"], :root => "themes/mobous/public" configure :production do
> require 'newrelic_rpm' end
>
> ...
>
>
> New Relic sees that the app is setup, but nothing is being recorded in the
> web interface. It has been setup for the past 24 hours and the New Relic
> website says it should take 2 minutes. Anyone have experience with New
> Relic in Nesta? --
>
> **
>
>
> Dave Long
>
> Web Application Consultant
>
>
> (203) 626-1809 (tel:%28203%29%20626-1809)
>
> www.davejlong.com (http://www.davejlong.com) (http://www.davejlong.com)
>
>
>
>
>
>
>
>


-- 

Dave Long
Web Application Consultant

(203) 626-1809
www.davejlong.com

Re: [nesta] Setting up NewRelic on Nesta

From:
Graham Ashton
Date:
2012-01-25 @ 00:53
I suspect Seve doesn't know that Nesta is actually (as far as they're 
concerned) just Sinatra. It is supported (see 
http://newrelic.com/docs/ruby/new-relic-for-ruby) so I'd recommend writing
back to them and make that clear.

On 24 Jan 2012, at 23:56, David Long <dave@davejlong.com> wrote:

> Glenn I did add my newrelic.yml file, but I still don't get any graph 
information.  I contacted NewRelic support and they gave me:
> 
> Howdy David,
> 
> Right now we don't provide automatic instrumentation of Nesta, and so we
most likely are not instrumenting any of the method calls. If you would 
like to instrument it yourself, you're welcome to use using the Ruby Agent
API:
> 
> http://newrelic.com/docs/ruby/ruby-agent-api
> 
> Please let me know if you have any further questions or if I missed something!
> 
> Best,
> 
> Seve