Skip to main content

New Relic Python Agent

Project description

header

New Relic Python Agent

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.

Usage

This package can be installed via pip:

$ pip install newrelic

(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, the recommended way to integrate the agent is to 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_COMMAND_OPTIONS

    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.agent
    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 UI to see the real time statistics generated from your application.

Additional resources may be found here:

Support

Should you need assistance with New Relic products, you are in good hands with several support diagnostic tools and support channels.

This troubleshooting framework steps you through common troubleshooting questions.

New Relic offers NRDiag, a client-side diagnostic utility that automatically detects common problems with New Relic agents. If NRDiag detects a problem, it suggests troubleshooting steps. NRDiag can also automatically attach troubleshooting data to a New Relic Support ticket.

If the issue has been confirmed as a bug or is a Feature request, please file a Github issue.

Support Channels

Privacy

At New Relic we take your privacy and the security of your information seriously, and are committed to protecting your information. We must emphasize the importance of not sharing personal data in public forums, and ask all users to scrub logs and diagnostic information for sensitive information, whether personal, proprietary, or otherwise.

We define “Personal Data” as any information relating to an identified or identifiable individual, including, for example, your name, phone number, post code or zip code, Device ID, IP address and email address.

Please review New Relic’s General Data Privacy Notice for more information.

Roadmap

See our roadmap, to learn more about our product vision, understand our plans, and provide us valuable feedback.

Contributing

We encourage your contributions to improve the New Relic Python Agent! Keep in mind when you submit your pull request, you’ll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at opensource@newrelic.com.

A note about vulnerabilities

As noted in our security policy, New Relic is committed to the privacy and security of our customers and their data. We believe that providing coordinated disclosure by security researchers and engaging with the security community are important means to achieve our security goals.

If you believe you have found a security vulnerability in this project or any of New Relic’s products or websites, we welcome and greatly appreciate you reporting it to New Relic through HackerOne.

License

The New Relic Python Agent is licensed under the Apache 2.0 License. The New Relic Python Agent also uses source code from third-party libraries. You can find full details on which libraries are used and the terms under which they are licensed in the third-party notices document.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

newrelic-5.16.2.147.tar.gz (559.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

newrelic-5.16.2.147-cp38-cp38-manylinux2010_x86_64.whl (674.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

newrelic-5.16.2.147-cp38-cp38-manylinux1_x86_64.whl (674.1 kB view details)

Uploaded CPython 3.8

newrelic-5.16.2.147-cp37-cp37m-manylinux2010_x86_64.whl (671.1 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

newrelic-5.16.2.147-cp37-cp37m-manylinux1_x86_64.whl (671.1 kB view details)

Uploaded CPython 3.7m

newrelic-5.16.2.147-cp36-cp36m-manylinux2010_x86_64.whl (668.3 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

newrelic-5.16.2.147-cp36-cp36m-manylinux1_x86_64.whl (668.3 kB view details)

Uploaded CPython 3.6m

newrelic-5.16.2.147-cp35-cp35m-manylinux2010_x86_64.whl (667.6 kB view details)

Uploaded CPython 3.5mmanylinux: glibc 2.12+ x86-64

newrelic-5.16.2.147-cp35-cp35m-manylinux1_x86_64.whl (667.6 kB view details)

Uploaded CPython 3.5m

newrelic-5.16.2.147-cp27-cp27m-manylinux2010_x86_64.whl (661.8 kB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

newrelic-5.16.2.147-cp27-cp27m-manylinux1_x86_64.whl (661.8 kB view details)

Uploaded CPython 2.7m

File details

Details for the file newrelic-5.16.2.147.tar.gz.

File metadata

  • Download URL: newrelic-5.16.2.147.tar.gz
  • Upload date:
  • Size: 559.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147.tar.gz
Algorithm Hash digest
SHA256 ced57d1828f156af941357cf52ebfca312e94cc7980a81367387335c93500862
MD5 fac9801dfe8e26014989b49c17a8ca88
BLAKE2b-256 52d1d26df49daa50f019006acbefd0044995751a64dba2697fd0ac0cfe887ad8

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 674.1 kB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5e546ef4ef83b94d6d4bd8747337f98b3457ec9903c751343215c27929af9140
MD5 6dc325b01f45575e3c6d01651f029232
BLAKE2b-256 4a411e56793a2c18dd433f40a230a73c3a2d18f69efea483ac1d9d11e67d2bf6

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 674.1 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d79bc6c8b00cdde4e556f5d4697639306bf20862b110d63d776c5bbcd44c4942
MD5 00fcbed6d9398214d7c19be66c01368d
BLAKE2b-256 9e1926e5241d4888fe2cc08b28a4f40384e622a39baf86aaa7a5b0be7e8820ed

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 671.1 kB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 66eecf31023d925bf8fbe165172af1d9959a65d03aeffb7a9055da2ae1038807
MD5 43790398bf0919694192adcc4404fab4
BLAKE2b-256 87845fe5a9f04bf8a2ec5716b2dba608b63d4c99ad6ae2cc1fb9b486552dbbe7

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 671.1 kB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7fab249a9de1108e9537c267e14b75732f0d046539507b65cf0c96a141e4ccb1
MD5 16b8038c5d46334795deecf9640c275b
BLAKE2b-256 ef99df93c92441e19f43fd11aef95a848be4c7075039c9ca88018dd07af5919d

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 668.3 kB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a7630d78a43e5f137eb6b4ae11c2f837c65061601e7472f445ad45a1e62bce1e
MD5 f1a4635c09398b81aff940c79e9cc4c8
BLAKE2b-256 2eec4531a3c9d3098147b64d0f80a385f91b81524598b4b379cec7165be7ab26

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 668.3 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2d76f82ee3751fb9cc7a64541916a1a38d421866b7b62c25725741a923afc1bf
MD5 cb0dbf9c8052731630cd326a051606d2
BLAKE2b-256 12d406d339384c45e08fec8c70beba00b49041179d28e0393fc2326564165148

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 667.6 kB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3bd4651c476e3c3607bb32f6c8dd463fba34c8dd613a8068b56e57cf35c67f3b
MD5 064d68971c717295abcefdc302799ab7
BLAKE2b-256 4e74ce67bad9d842d73dee687fb42eb33c3b75dbd5ce8f1cf300e095cd2d2b6d

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 667.6 kB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 46aa6d8dbd2bd2355f92fc82efbfa0670709f38e87279c6b96b8a92cf08b9751
MD5 5508f00c93661c76c4ce083e0a8293db
BLAKE2b-256 25cb413adc9a301d797b86c35fda75f081a9fc6d9bca7ba66cd99ff9e4938834

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp27-cp27m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 661.8 kB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5b3e7ad4fe7163a0d08805ed11bdfb7c24ef73684b944c67cb4ef03de219ff96
MD5 aea144435c7caa8043f157123d5eb35f
BLAKE2b-256 da1603297743dd653669da382ea23161ad4bb3f7edfaeeebbfe8d6d57f06ac2b

See more details on using hashes here.

File details

Details for the file newrelic-5.16.2.147-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: newrelic-5.16.2.147-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 661.8 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for newrelic-5.16.2.147-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2a885614ae44af07de791163ef62a86bcd7cef5e91f5784452ed38d304307006
MD5 7620ccfd0f292f6781b9b7fa32a280d9
BLAKE2b-256 f53e06a077978b1e33f021a738f245199d6d1314d17de912f8103a37e3dc144e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page