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-8.11.0.tar.gz (951.5 kB view details)

Uploaded Source

Built Distributions

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

newrelic-8.11.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (764.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

newrelic-8.11.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (763.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

newrelic-8.11.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (764.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

newrelic-8.11.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (762.8 kB view details)

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

newrelic-8.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (763.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

newrelic-8.11.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (762.3 kB view details)

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

newrelic-8.11.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (768.6 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

newrelic-8.11.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (767.0 kB view details)

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

newrelic-8.11.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (762.0 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

newrelic-8.11.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (760.7 kB view details)

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

newrelic-8.11.0-cp27-cp27mu-manylinux2010_x86_64.whl (765.0 kB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

newrelic-8.11.0-cp27-cp27mu-manylinux1_x86_64.whl (765.0 kB view details)

Uploaded CPython 2.7mu

newrelic-8.11.0-cp27-cp27m-manylinux2010_x86_64.whl (765.0 kB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

newrelic-8.11.0-cp27-cp27m-manylinux1_x86_64.whl (765.0 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

  • Download URL: newrelic-8.11.0.tar.gz
  • Upload date:
  • Size: 951.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for newrelic-8.11.0.tar.gz
Algorithm Hash digest
SHA256 59cb3da7e5dd526e7f8696a5ed704d06c43bc2d4da840897534e9a51da7266eb
MD5 87d484c8c79dd691ff3671b888d64833
BLAKE2b-256 135d6a8158c52486befa5994047bf6ffce78d478d33753258768761497e1615f

See more details on using hashes here.

File details

Details for the file newrelic-8.11.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for newrelic-8.11.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7a649068a0cf5c4a7ba0f9739e52f1ad9d2882aafcfe3361fd264cbb975c5318
MD5 55e0b749fde0f6000af3d6de3c70346b
BLAKE2b-256 0fbc8daf69620740f8e719c0a992ae15294c746e7b9706540f84d7a8e60402d6

See more details on using hashes here.

File details

Details for the file newrelic-8.11.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-8.11.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1c9463dd1b1407ade27a4c7ebb2137b77c51e23498cec7ee2671fff3fd33fd73
MD5 741220a0b0ce17d964da897077fe0674
BLAKE2b-256 fd2027d352bd372ce3187953ca04456482c01c561a1064ef17bd7387482cdba0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.11.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d95eade883fb3aa0a2a2d04f1dd85f0df04d31bfc32f78139fe91c0362c1987e
MD5 64fd9fbf499939fbbd0a24c0cb951e27
BLAKE2b-256 0bcf843671caaf94716725a86189f0564afaf5a41f485db790c66c7e7d82ea64

See more details on using hashes here.

File details

Details for the file newrelic-8.11.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-8.11.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 313aa30918e54bfc226229d3b4fa7f8879fa5beab98ed46218ef36265b7205e5
MD5 4b8fcda54ead6e89372d053328ca6124
BLAKE2b-256 006e0688cad44c891d02dbc3998be873ba04dc8a2b0dc8066f95f15be9ff75cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.11.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 68fec20006b312a3c93de82e91cb39be44ac73ba08d15552fff5206dfabda227
MD5 8499d51fd09528078dbd0b0dc477745c
BLAKE2b-256 e80e36011d5cc3af88ceeae8e90cae4b2c397f5a6fe9f39c311ff0c26fb4d7cf

See more details on using hashes here.

File details

Details for the file newrelic-8.11.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-8.11.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 16761522dde9c05146078f7729aefbf05cea7fc42c703c0b756618168939f872
MD5 1adebcdd79f8778e5473817b9cb38867
BLAKE2b-256 701aa68c7fea2449ab733991adfc3dbcbe818b49c1157d5ac4185e367b61b2b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.11.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b8954dcfa78cb5d0398490938f3a84f29d53554bb498bb50bf232715a3577a68
MD5 9b4aff51df260e6db9c98cae6da85188
BLAKE2b-256 d3c0f5650efe62cf7ce621f7dde4ecbf8d36b20986989e623c02ac5dfe08e78a

See more details on using hashes here.

File details

Details for the file newrelic-8.11.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-8.11.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5e32b7c92ed8922df599769270dbc5a322ca78e29b5c89083b2b39af80a44361
MD5 d86a59fa2f67f978ec3b757028d00141
BLAKE2b-256 6a07d7e28e9e7f333c0db194d1e9815933384d1589eef1de9ac9bea2f56f90ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.11.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fc4e0fe04ad4f1fc19cb86844d73e834d99dd613dd8a4f2e7be204193d5b8dc8
MD5 17b4ce8e9678019242ceb00f74b6d812
BLAKE2b-256 f343fd6460aec11ab798afa3b3e71b8a53b716c29948f71624aab337f944bf80

See more details on using hashes here.

File details

Details for the file newrelic-8.11.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-8.11.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d5a3921c73913ea91407a6b2cda4e68aa3e52d7ceba77365d9b090b184f7e15
MD5 c8285751ca4e31ef28c81ac4c3714e8e
BLAKE2b-256 e525f16283aa5c5f7aa92f3b4a076e3d024a1c863942710bcd257c8b4a193d20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.11.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 cc169ad19cb3b44ec028df08d172327b72d0137d62935c87cbbef173f710c2ed
MD5 af99d4a3c26b5f9aa15a24f2eeb01ade
BLAKE2b-256 487685ca30d062714736571efcb7dcbe38e7efc5a91bb236ab06cc14409cc719

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.11.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 18dae1606f79a92c21967d11cbd4f42c03eb5b04b2f6b86a954b5e6a736113d7
MD5 d99515b9619b8eebffd3c82687da2606
BLAKE2b-256 73c2927b0ca6afbf0f77211a6f73a2d5547d2de919b544a8a10bcd43746b34ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.11.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2e70371c8b5fcfca6e7f57395f205ed6b38228b4a5594f49f7aae4d978aa9eef
MD5 c36f0f1570f8b7a38b2dea677c269e08
BLAKE2b-256 c44bd31c49bacc2e07d0805493fd93640ce486e80d6e39c21c85fb2477410ee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.11.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 41cf36017b1b54187c5b422fff32528abc4f2043227397f7a242864c31939c37
MD5 31364a3d1155f7c37ca77af4bf089e6d
BLAKE2b-256 76cec0a600bdd634927d5b57ccc3340926be27c2ca06621c65da72c7fb6f7946

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