How do I install NewRelic on my servers?

Similar to my other question, I need to install NewRelic on all my servers. How best do I do this?

Please try the deploy hook below. You will need to set a NEWRELIC_KEY environment variable, which should contain the 40 character license key provided by NewRelic in order to install it.

      - snippet: cloud66/newrelic
        target: any
        execute: true
        apply_during: build_only

Please note the “apply_during: build_only”. If you are using this against an existing stack, you need to comment this out for the first deploy. Once it’s run once, you can uncomment it (so that it will only run on new servers).

Great answer, Phillip! Glad to see you already have a snippet ready and waiting for NewRelic. :)

You must be logged in to answer this question