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.

Product 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-7.0.0.166.tar.gz (830.0 kB view details)

Uploaded Source

Built Distributions

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

newrelic-7.0.0.166-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (710.3 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

newrelic-7.0.0.166-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (709.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

newrelic-7.0.0.166-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (714.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

newrelic-7.0.0.166-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (713.7 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

newrelic-7.0.0.166-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (710.9 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

newrelic-7.0.0.166-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (710.0 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

newrelic-7.0.0.166-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (707.8 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ ARM64

newrelic-7.0.0.166-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (706.9 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64manylinux: glibc 2.5+ x86-64

newrelic-7.0.0.166-cp27-cp27mu-manylinux2010_x86_64.whl (699.7 kB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

newrelic-7.0.0.166-cp27-cp27mu-manylinux1_x86_64.whl (699.7 kB view details)

Uploaded CPython 2.7mu

newrelic-7.0.0.166-cp27-cp27m-manylinux2010_x86_64.whl (699.7 kB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

newrelic-7.0.0.166-cp27-cp27m-manylinux1_x86_64.whl (699.7 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

  • Download URL: newrelic-7.0.0.166.tar.gz
  • Upload date:
  • Size: 830.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for newrelic-7.0.0.166.tar.gz
Algorithm Hash digest
SHA256 6fd331f84dabebd1ef24d8756883b90e43fdbb7d89ce417ca5a35dcece0e5bbc
MD5 df283fc5052ef756c0d4b762179f697a
BLAKE2b-256 6d13ca0f62fc6aa147c1d4a205774be9ff6023edce5b2494f80c4ebd3064d9eb

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for newrelic-7.0.0.166-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 eb5f5b1ba142ab0518c19f00ee00e9935949d267430c36cb29432bd879d39411
MD5 0e5dc29720836f86adb17fc2fbdf9e03
BLAKE2b-256 62fea4ecda590cacebee348591f56149d0089f39c995f8c8fcb10eb238bcd927

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-7.0.0.166-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 87dcb0ad8988d800e1ec020ddadaba4a35603ca620c5f7e9b132cc2eeab48fc5
MD5 fd70378c6cb6ced263cd0a189829fb5f
BLAKE2b-256 1a2f47fda7c88e636572798f83df9634dda084dea74c4ea8331750b611572893

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for newrelic-7.0.0.166-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fe4189ed9157e97363bc4535e18b9b7d20ab3e9ec02accf5b9232e3fe77531aa
MD5 fa517ad7a74c32cbff1b6b8838d7fa73
BLAKE2b-256 26c7a77db318c174321104621f22e39bf5480f237c21402bd5ba7eb22d2677ae

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-7.0.0.166-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f2494c38bd0e62220c2af697b1a747d423eca6c177607d52c8678ad5513ff95d
MD5 e83f563465dd604f5b05560c9d51f2bc
BLAKE2b-256 691443b75b087b73e4ec3f7f97b3d6ed9ab2441b62cb04d8f186cb858fc3767a

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for newrelic-7.0.0.166-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 715261cd18b2e58574f7997cd64eec970de2e34375dd14ade3a6f4473a6fc536
MD5 137c9d4512504675018f4710ed621f6b
BLAKE2b-256 509b9dc5e9b743098e72087e5e7718da9bb5d9ab38d6675bd09170991bf59ed8

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-7.0.0.166-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 79941674e6d57b0b6d4f3960cd92ceedfd2abf75834dd0687f0dea0b373c3da5
MD5 9e97dd605aea923df954d98b25b87927
BLAKE2b-256 1369a78de2a96d96db3d6a9fae84621f82b52cf0414089c6e825e62037a9894e

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for newrelic-7.0.0.166-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6da1729a814b1781a3f3e20f26bce9cef2ffac166a0aed3f33afad4a73593623
MD5 63b35493e800f49a68a7c3f5524e6ae3
BLAKE2b-256 94115818aa85a3ff0b2df526e0e7bd4eae76033781fa28c849c16e96183c6ec7

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-7.0.0.166-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 36d491ace729402e7f9b7d6e9db78a416ed27525873dea224eae11797429a03f
MD5 41cb490d493deef2ad466a683d7aeaca
BLAKE2b-256 6b9b6ca80c43ca909110d0da9dce7b390d1b07ea7619e46833541c33e1d1db40

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp27-cp27mu-manylinux2010_x86_64.whl.

File metadata

  • Download URL: newrelic-7.0.0.166-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 699.7 kB
  • Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for newrelic-7.0.0.166-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 60aece67d509aee9ed627a9b39c0d3d8c02879f4b33f90b5a1964bf77473e8cd
MD5 0fc02460fe7b4ca594487cd014274c81
BLAKE2b-256 0242822b845ed6422850ace134fbf579eccb15d58346e8aaaa33406054e49881

See more details on using hashes here.

File details

Details for the file newrelic-7.0.0.166-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: newrelic-7.0.0.166-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 699.7 kB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for newrelic-7.0.0.166-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 05cbb835029c95befb5bed213a81b38c0acf6eb740fd01a7651d75519078f896
MD5 7d3b7b3a3c3923d901e8e60897860ad0
BLAKE2b-256 9bb0ffce898291b3495e1fd069b220ccfb0a515e0bc6f8777f6a5f7079b84131

See more details on using hashes here.

File details

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

File metadata

  • Download URL: newrelic-7.0.0.166-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 699.7 kB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for newrelic-7.0.0.166-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 99e31c6c39a2add985affc186a67722db5da74d01c794123dcdf64a08fcd19be
MD5 15838d46f8f5b9650fcf4403cac1b795
BLAKE2b-256 ff14af022973cb4cf2fc100ea5ace81c807b40ce41a5b242cdfb3fda4742592b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: newrelic-7.0.0.166-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 699.7 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for newrelic-7.0.0.166-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7d14ade92c31f68ce4f038241f5ef85c34b45e0c9ae03b06e527b59a938d54f8
MD5 b56b7795b15d566e9e6935ae32a6dceb
BLAKE2b-256 9acb94871a86b19e0fbe8ec7e57c5a0dd5f9e917ceb99b2743bf56e04f922db0

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