Bind a Custom New Relic Instance to a Ruby App on PWS
search cancel

Bind a Custom New Relic Instance to a Ruby App on PWS

book

Article ID: 294540

calendar_today

Updated On:

Products

Services Suite

Issue/Introduction

This article describes how to bind a custom New Relic instance to a Ruby app on the Pivotal Web Services (PWS).

Pivotal recommends the use of marketplace services from PWS marketplace. However, this is just for the convenience of the customers and there are circumstances when it's entirely appropriate to use a New Relic key obtained through a different way.

Resolution

Follow the steps mentioned below to connect a custom New Relic instance (not from PWS marketplace) to a sample rails app:

Use the New Relic and other service offerings from PWS marketplace as they provide auto-binding without the need to manually supply the credentials.

Be careful when injecting your service credentials directly into a configuration file that is part of your application. You do not want the service credentials to be checked into source code as this could leak the configuration values.