-
Notifications
You must be signed in to change notification settings - Fork 110
New Relic Monitoring
#What This document takes you through the importance and how to do of newrelic monitoring
#Why The first rule of thump for a cloud applications
If you can't measure it , You Can't Tweak it.
New relic acts as your friend in getting stats on the performance of your application running on the cloud.
#How To
-
Figure out which newrelic service you have to bind to in cloudfoundry market place
cf m | grep -i newrelic
-
create a service instance of new relic
cf cs newrelic-predix standard newrelic
-
Update the
manifest.yml
to bind tonewrelic
service that was created in Step 2, -
in the nginx.conf (If present), add the following code location : Explanations below [1]
#nginx_status location /nginx_status { stub_status on; access_log off; allow 127.0.0.1; deny all; }
-
Push the application and the go to your newrelic dashboard @ https://rpm.newrelic.com/accounts/910444/plugins/14519 . You can see your newrelic account page @ https://devcloud.swcoe.ge.com/devspace/display/PABYJ/New+Relic+Service+Broker+for+Cloud+Foundry
#Explanations
-
Why Add
/nginx_status
location in Step 5 ?The newrelic agent that monitors nginx is developed by nginx and it uses the output of stub_status to monitor the health of nginx.
-
Can I change the location to anything other than
/nginx_status
?
No, As of now, the buildpack only supports the url as /nginx_status
, Check the configuration file for more details