Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Flexible UAA NewRelic Configuration#703

Merged
jpalermo merged 1 commit intocloudfoundry-attic:developfrom
cf-identity:feature/lenient_uaa_newrelic_config
Jun 10, 2015
Merged

Flexible UAA NewRelic Configuration#703
jpalermo merged 1 commit intocloudfoundry-attic:developfrom
cf-identity:feature/lenient_uaa_newrelic_config

Conversation

@cf-identity
Copy link
Contributor

Extract the newrelic.environment variable into a system environment, so that

properties:
  uaa:
    newrelic:
      environment

takes into effect. The following sample configurations have been tested
The following triggers UAA to enable the NewRelic agent

properties.uaa.newrelic.common.license_key

or

properties.uaa.newrelic.(properties.uaa.newrelic.environment).license_key

The default value of properties.uaa.newrelic.environment is 'production'

Sample 1: test environment that inherits common properties

properties:
  uaa:
    newrelic:
      environment: test
      common: &default_settings
        license_key: 'valid-license-here'
      test:
        <<: *default_settings
        app_name: FHANIK-New-Relic-UAA-Sample-1
        error_collector:
          ignore_errors: akka.actor.ActorKilledException

Sample 2 : staging environment

properties:
  uaa:
    newrelic:
      environment: staging
      staging:
        license_key: 'valid-license-here'
        error_collector:
          ignore_errors: akka.actor.ActorKilledException
        app_name: FHANIK-New-Relic-UAA-Sample-2

Sample 3 : Staging environment that inherits common properties

properties:
  uaa:
    newrelic:
      environment: staging
      common: &default_settings
        error_collector:
          ignore_errors: akka.actor.ActorKilledException
      staging:
        license_key: 'valid-license-here'
        <<: *default_settings
        app_name: FHANIK-New-Relic-UAA-Sample-3

Sample 4: Production environment - no need to specify properties.uaa.newrelic.environment

properties:
  uaa:
    newrelic:
      production:
        license_key: 'valid-license-here'
        error_collector:
          ignore_errors: akka.actor.ActorKilledException
        app_name: FHANIK-New-Relic-UAA-Sample-4

Sample 5: Create a custom environment, this one called 'common'

properties:
  uaa:
    newrelic:
      environment: common
      common:
        license_key: 'valid-license-here'
        app_name: FHANIK-New-Relic-UAA-Sample-5
        error_collector:
          ignore_errors: akka.actor.ActorKilledException

Extract the newrelic.environment variable into a system environment
@cfdreddbot
Copy link

Hey cf-identity!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you've already signed the CLA.

@cf-gitbot
Copy link
Collaborator

We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/96538678.

@cf-identity cf-identity changed the title Flexible NewRelic Configuration Flexible UAA NewRelic Configuration Jun 9, 2015
@jpalermo jpalermo merged commit da0abcc into cloudfoundry-attic:develop Jun 10, 2015
@fhanik fhanik deleted the feature/lenient_uaa_newrelic_config branch June 30, 2015 17:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants