Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

New Relic Python Agent

Project Description

The newrelic package instruments your application for performance monitoring and advanced performance analytics with New Relic.

Pinpoint and solve Python application performance issues down to the line of code. New Relic APM is the only tool you’ll need to see everything in your Python application, from the end user experience to server monitoring. Trace problems down to slow database queries, slow 3rd party APIs and web services, caching layers, and more. Monitor your app in a production environment and make sure your app can stand a big spike in traffic by running scalability reports.

Visit Python Application Performance Monitoring with New Relic to learn more.

Installation

$ pip install newrelic

Usage

(These instructions can also be found online: Python Agent Quick Start.)

  1. Generate the agent configuration file with your license key.

    $ newrelic-admin generate-config <YOUR-LICENSE-KEY> newrelic.ini
    
  2. Validate the agent configuration and test the connection to our data collector service.

    $ newrelic-admin validate-config newrelic.ini
    
  3. Integrate the agent with your web application.

    If you control how your web application or WSGI server is started, you can use the newrelic-admin wrapper script. Modify the existing startup script, prefixing the existing startup command and options with newrelic-admin run-program.

    Also, set the NEW_RELIC_CONFIG_FILE environment variable to the name of the configuration file you created above:

    $ NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program <YOUR-EXISTING-STARTUP-COMMAND>
    

    Examples:

    $ NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program gunicorn -c config.py test_site.wsgi
    
    $ NEW_RELIC_CONFIG_FILE=newrelic.ini newrelic-admin run-program uwsgi uwsgi_config.ini
    

    Alternatively, you can also manually integrate the agent by adding the following lines at the very top of your python WSGI script file. (This is useful if you’re using mod_wsgi.)

    import newrelic
    newrelic.agent.initialize('/path/to/newrelic.ini')
    
  4. Start or restart your Python web application or WSGI server.

  5. Done! Check your application in the New Relic RPM UI to see the real time statistics generated from your application.

License

New Relic for Python is free-to-use, proprietary software. Please see the LICENSE file in the distribution for details on the New Relic License agreement and the licenses of its dependencies.

Release History

Release History

This version
History Node

2.90.0.75

History Node

2.88.1.73

History Node

2.88.0.72

History Node

2.86.3.70

History Node

2.86.3.69

History Node

2.86.2.68

History Node

2.86.1.66

History Node

2.86.0.65

History Node

2.84.0.64

History Node

2.82.1.63

History Node

2.82.0.62

History Node

2.80.1.61

History Node

2.80.0.60

History Node

2.78.0.57

History Node

2.76.0.55

History Node

2.74.0.54

History Node

2.72.1.53

History Node

2.72.0.52

History Node

2.70.0.51

History Node

2.68.0.50

History Node

2.66.0.49

History Node

2.64.0.48

History Node

2.62.0.47

History Node

2.60.0.46

History Node

2.58.2.45

History Node

2.58.1.44

History Node

2.58.0.43

History Node

2.56.0.42

History Node

2.54.0.41

History Node

2.52.0.40

History Node

2.50.0.39

History Node

2.48.0.38

History Node

2.46.0.37

History Node

2.44.0.36

History Node

2.42.0.35

History Node

2.40.0.34

History Node

2.38.2.32

History Node

2.38.0.31

History Node

2.36.0.30

History Node

2.34.0.29

History Node

2.32.0.28

History Node

2.30.0.27

History Node

2.28.0.26

History Node

2.26.2.24

History Node

2.26.0.22

History Node

2.24.0.21

History Node

2.22.1.20

History Node

2.22.0.19

History Node

2.20.1.18

History Node

2.20.0.17

History Node

2.18.1.15

History Node

2.16.0.12

History Node

2.14.0.11

History Node

2.12.0.10

History Node

2.10.1.9

History Node

2.10.0.8

History Node

2.8.0.7

History Node

2.6.0.5

History Node

2.4.0.4

History Node

2.2.1.3

History Node

2.2.0.2

History Node

2.0.0.1

History Node

1.13.1.31

History Node

1.13.0.30

History Node

1.12.0.56

History Node

1.11.0.55

History Node

1.10.2.38

History Node

1.10.1.36

History Node

1.10.0.28

History Node

1.9.0.21

History Node

1.8.0.13

History Node

1.7.0.31

History Node

1.6.0.13

History Node

1.5.0.103

History Node

1.4.0.137

History Node

1.3.0.289

History Node

1.2.1.265

History Node

1.2.0.246

History Node

1.1.0.192

History Node

1.0.5.156

History Node

1.0.3.138

History Node

1.0.2.130

History Node

0.5.58.122

History Node

0.5.52.109

History Node

0.5.50.107

History Node

0.5.49.105

History Node

0.5.48.104

History Node

0.5.47.103

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
newrelic-2.90.0.75.tar.gz (728.7 kB) Copy SHA256 Checksum SHA256 Source Jul 31, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting