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.2.2.169.tar.gz (840.6 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.2.2.169-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (709.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

newrelic-7.2.2.169-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (723.8 kB view details)

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

newrelic-7.2.2.169-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (708.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

newrelic-7.2.2.169-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (723.3 kB view details)

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

newrelic-7.2.2.169-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (713.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

newrelic-7.2.2.169-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (727.2 kB view details)

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

newrelic-7.2.2.169-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (707.3 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

newrelic-7.2.2.169-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (723.5 kB view details)

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

newrelic-7.2.2.169-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (706.9 kB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.17+ ARM64

newrelic-7.2.2.169-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (720.4 kB view details)

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

newrelic-7.2.2.169-cp27-cp27mu-manylinux2010_x86_64.whl (710.0 kB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

newrelic-7.2.2.169-cp27-cp27mu-manylinux1_x86_64.whl (710.0 kB view details)

Uploaded CPython 2.7mu

newrelic-7.2.2.169-cp27-cp27m-manylinux2010_x86_64.whl (710.0 kB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

newrelic-7.2.2.169-cp27-cp27m-manylinux1_x86_64.whl (710.0 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

  • Download URL: newrelic-7.2.2.169.tar.gz
  • Upload date:
  • Size: 840.6 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.2.2.169.tar.gz
Algorithm Hash digest
SHA256 e351dd5c47a6284173f9010811f8637509cdc707bba3c4ab7aa6d13296a391d8
MD5 f5c027023826d8c89ec4c19cfa22d3c2
BLAKE2b-256 012e006437d2c445354accc45bffd4ab192e31dbcc37e50efcf02528ae88983e

See more details on using hashes here.

File details

Details for the file newrelic-7.2.2.169-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for newrelic-7.2.2.169-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 3998e1fc9c92052b6ad0002a8558e11fce26c51e2f085aa4e9866b8940f5b318
MD5 f58ff64f3a448e610f3b2c284702b11b
BLAKE2b-256 1b59dbc9dba0d9341b2639fd4a7e2312c42b8bc91cb5d9712d8f52c0be76818b

See more details on using hashes here.

File details

Details for the file newrelic-7.2.2.169-cp310-cp310-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.2.2.169-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 36784600b52d99964780aea411b615f63bd1f6eb9b8ecb29330978e7a4936254
MD5 211c9ec35cfbba91613a19df981d31cc
BLAKE2b-256 67e8af32378f227d0d9389216181b692e01bbdcc16eba9150cdd5f1853fe06b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-7.2.2.169-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d6a55ab67fa618f45f01240ece453cf98e4281c54504e7c54554cdd6077a1f24
MD5 3ddc9be9a84efbc79434b4e3477bea20
BLAKE2b-256 de3a407a12102d210a2f3c5271f051eac474359e3c2b210398625a4a1d5b5721

See more details on using hashes here.

File details

Details for the file newrelic-7.2.2.169-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.2.2.169-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f64aaa2d2cd531b0db8d16826919403954135c45ffee208300d71dc43ce967f3
MD5 a03317ac3e033cb60f47b3cccec44fb1
BLAKE2b-256 0c29350266b516a58d3c61785dc1408651a7ebfaae046f6097ceffa1fa0b41fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-7.2.2.169-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2a202ef71227fa924af2caa5012afd628c68749108c447c0d58d50c91ec8cecf
MD5 1aadffb8670e93bb1e2cc4f90caed4c8
BLAKE2b-256 ca45f6d6318fd5eddce5572cad2cb9c68744b8262ee84f2b5d2020c69c40e315

See more details on using hashes here.

File details

Details for the file newrelic-7.2.2.169-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.2.2.169-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3fef5573b673fefa5745300ff362adde273d36f10c9330ac6cf80b08b5b195fb
MD5 ce4bc935e081cfa0f6f25048c329b54a
BLAKE2b-256 ad9325d18279814ba6833287f414a4e59744c54748e895c9268a6064b3d2f8d3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-7.2.2.169-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7a5bc90ca2cf338629108893ed88e78a8805b629dc1466ce3ac18fb91bfb983e
MD5 182d5fa9943cd486113d62a7650fea2a
BLAKE2b-256 fe6b1a77e87ce19e457a0c3fba1ca8c315320aab8e3c805bc41ee84977d4a865

See more details on using hashes here.

File details

Details for the file newrelic-7.2.2.169-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.2.2.169-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 aed6fa67ba951cd6e44732d15aec4f50ef20f9384cb2ce63bc14fbb4e2091312
MD5 eefd43f9a67a6f2c01685dcf980cf3bc
BLAKE2b-256 bebbf78c992e8a64f201f72c22a4277976108551c2045fe45405751b2cc16533

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-7.2.2.169-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cb531e9c74e04f8c52e02ea7243ee3f6a7869ea2fc405db9853a2b95775a87fe
MD5 e6f5aa6ef24a131da86111e47b17b25b
BLAKE2b-256 8f0b9942acfb654904d848f32ea84e6022fde01783e504e674a4137a7f82dd92

See more details on using hashes here.

File details

Details for the file newrelic-7.2.2.169-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.2.2.169-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ace9bb3e5090dc434479f516a4204893384182cb19a4915f55584b969acd5557
MD5 f7b4efaa66cccf6f552a2896eff6fe7b
BLAKE2b-256 7aeeaa5493a7882f523d5181adf5ddcbf8179fe34574db6b2d1399bfe60b9ece

See more details on using hashes here.

File details

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

File metadata

  • Download URL: newrelic-7.2.2.169-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 710.0 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.2.2.169-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 672d6cf5720dd0dee8ebef99446bf06af5dbde9a3553dde2531ea0c22e069846
MD5 83680d796e4680eae493a161ac8447d6
BLAKE2b-256 92589b427754829c23c11fd50ead656f56dc8338173b16b6d55c7ade280a9924

See more details on using hashes here.

File details

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

File metadata

  • Download URL: newrelic-7.2.2.169-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 710.0 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.2.2.169-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 4ac6d9e2eed03d437f97eeb0c520904090546d3749e413e3126ad303428ca1d4
MD5 7a7e50489ae1a958082cadac3fa146f9
BLAKE2b-256 fb8ded3935be4f360bd3ca73d1ca69ac4ec19cc4605fb2a4c444deebc38984be

See more details on using hashes here.

File details

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

File metadata

  • Download URL: newrelic-7.2.2.169-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 710.0 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.2.2.169-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2ac87dd5992b344a1ab12a1408b79897387ccd4ca0d2d5c256ae375e88a3fc10
MD5 4e80b0f66492904ae1a819d36b8c06f2
BLAKE2b-256 ce45f3d30038fa01cb886dede32efcc5171f797ffaf8d151001cfa0fd8ca6de5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: newrelic-7.2.2.169-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 710.0 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.2.2.169-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d3c85a9392ec638dc735163cdf8a0ce8034384b6b4267e7d69256833646d6c29
MD5 f654b54a501f5f37d8f247a45786889b
BLAKE2b-256 844cbd8faa2ea24c1b4f69c480dbe694a294301c859914a66285d1eee884df35

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