Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Newrelic #79

Merged
merged 6 commits into from
Apr 24, 2015
Merged

Newrelic #79

merged 6 commits into from
Apr 24, 2015

Conversation

LindsayYoung
Copy link
Contributor

I got new relic working on the test instance. Still need to up the security settings.

@@ -84,6 +85,7 @@ def currency_filter(num, grouping=True):
return locale.currency(num, grouping=grouping)

if __name__ == '__main__':
nr_agent.initialize()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My impression from the docs is that we can either run our app prefixed with newrelic-admin run-program or import and initialize the agent within the app. One or the other should be enough--I don't think we need both.

https://docs.newrelic.com/docs/agents/python-agent/installation-configuration/python-agent-integration

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, @jmcarp . Yes, let's standardize on the wrapper script and take this import/initialize out.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# "development", "test", "staging" or "production".
#

[FEC_ENVIRONMENT:development]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be NEW_RELIC_ENV?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually that should all be taken care of in the CF manifests, I think... We can probably just take out this part. At least the newrelic.ini that @dlapiduz submitted for the API had monitor_mode set to true globally.

- Set high_security to true
- Removed app names (these are specified in CF manifests)
- Removed redundant environ-specific settings
LindsayYoung added a commit that referenced this pull request Apr 24, 2015
@LindsayYoung LindsayYoung merged commit 91559f3 into master Apr 24, 2015
@LindsayYoung LindsayYoung deleted the newrelic branch April 24, 2015 18:12
@LindsayYoung LindsayYoung changed the title [wip] Newrelic Newrelic Apr 24, 2015
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.

None yet

3 participants