Skip to content

Instantly share code, notes, and snippets.

@jwrubel
Created November 12, 2013 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwrubel/7437761 to your computer and use it in GitHub Desktop.
Save jwrubel/7437761 to your computer and use it in GitHub Desktop.
Configuring servers to register partial populations with New Relic in Scalr. We're using modulo three here force only 1/3 of the servers to report. Adjust this value based on your own environment. Assumes your Pro license key is stored in an environment variable named NEW_RELIC_LICENSE_KEY and Lite key is stored in NEW_RELIC_LITE_KEY.
license_key: <%= ENV["SCALR_INSTANCE_INDEX"] % 3 == 0 ? ENV["NEW_RELIC_LICENSE_KEY"] : ENV["NEW_RELIC_LITE_KEY"] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment