Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.