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.1.0.180.tar.gz (884.2 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.1.0.180-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (732.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

newrelic-8.1.0.180-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (746.7 kB view details)

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

newrelic-8.1.0.180-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (731.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

newrelic-8.1.0.180-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (746.2 kB view details)

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

newrelic-8.1.0.180-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (736.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

newrelic-8.1.0.180-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (750.2 kB view details)

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

newrelic-8.1.0.180-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (730.2 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

newrelic-8.1.0.180-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (746.5 kB view details)

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

newrelic-8.1.0.180-cp27-cp27mu-manylinux2010_x86_64.whl (733.0 kB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

newrelic-8.1.0.180-cp27-cp27mu-manylinux1_x86_64.whl (733.0 kB view details)

Uploaded CPython 2.7mu

newrelic-8.1.0.180-cp27-cp27m-manylinux2010_x86_64.whl (732.9 kB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

newrelic-8.1.0.180-cp27-cp27m-manylinux1_x86_64.whl (732.9 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

  • Download URL: newrelic-8.1.0.180.tar.gz
  • Upload date:
  • Size: 884.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for newrelic-8.1.0.180.tar.gz
Algorithm Hash digest
SHA256 c769e82afcc80062c5274dabe1fa139ef89b0fb1b4dfa422c47296c952e2e766
MD5 ff2f28ab77670f47d5d4cfcc529795b2
BLAKE2b-256 73599a1070788d2462bc38ed7af95f0c0878a597a82307daa60c1015443572b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.1.0.180-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c3898c3c5cb92b7766a69d1107f63087c98e3f045fcd7f94fde6232acd9d0bd9
MD5 a2649e04db99fa7d41f347f84b078a77
BLAKE2b-256 8e40e3f323f335512758f67d68ae5acb3f410c94d96252e18ffc8d3c232a4eac

See more details on using hashes here.

File details

Details for the file newrelic-8.1.0.180-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-8.1.0.180-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0085386254498bb491d34563f7035eeeb5ff53e0b940cd965581d541100d8411
MD5 6317ada55b1311fe2afc243fc8fa9996
BLAKE2b-256 644600c1d42a282550715ab10002e56925927e1e803195d6ce2a746db97210ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.1.0.180-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 ebf12c19e474b35dfe58311f9a946bc96101347e68f9eeafe893b9bbb93a5aa3
MD5 af802e0945b555d4fd2366d53b169d6a
BLAKE2b-256 14bbb1d3d8eecb6bd37dcaa22c7fd362e4edc2fa6ea29f04a4e359f3eb7bdf0c

See more details on using hashes here.

File details

Details for the file newrelic-8.1.0.180-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-8.1.0.180-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 b2f97d836e2a725e43bae7e9ff7548405529bcbb18380e0f2364ff1f0f6793e7
MD5 090d10c4dbf9e4bc35525901f19a5813
BLAKE2b-256 54e5c0bba13323cb5603337b0a8a76999e1a44b566f50427321e007ac8627658

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.1.0.180-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 92b4bfc6d67ffab69065b0f892af0ce7f6532a06b66d23fed2445cf2ddc2c828
MD5 56a4354bae83f467122311d707088cb1
BLAKE2b-256 d3a94609934fb8163f71fb3f0eca20c840328a488752e8630eb2d8c69b844d16

See more details on using hashes here.

File details

Details for the file newrelic-8.1.0.180-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-8.1.0.180-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 65ec29529d044102e40a4f19816c193ea3f3a99233fa2cb4dca961d767aebcb9
MD5 3844834abcc26415f3bcd4df03a4350d
BLAKE2b-256 11e65b17a8f8be22b4fbe18f66f79bc380e1c9cc34a78499ffa05b3860a5518e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.1.0.180-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 c3ccc7d1dc0bdbf36da4eafc5cd57f9209032b68d16521579ba4f67e28487109
MD5 ba4c0daab5e67f2956bb91f9038ff1a4
BLAKE2b-256 05e0841a254052bc2c8846aa355d04e4c75a555130e1a6f62627b0cada176d76

See more details on using hashes here.

File details

Details for the file newrelic-8.1.0.180-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-8.1.0.180-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 3741356cbc027d7e300a290d3b96ab6c5e16c68d092b26241e799f335f8be821
MD5 b861834d682e0fe385599acb92e86aff
BLAKE2b-256 29df8eedefe3006aab18897c55270550c5c522d4699f2ffe518573d98b57c63e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.1.0.180-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d29da83a9fbae6e637e5af35b27d1299c253f96d0dff46f9732bd237790c05f4
MD5 f4c755f05bdc9b7deffb57bcde9e4f12
BLAKE2b-256 7e813a74b93b88302186d7fca6e30ef2aeefe7bebe4fa1e847f939c5fe49842d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.1.0.180-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 eaf953806904b43086272b0d016ea13bd29620fc1daa93e7f1d8882357b3d944
MD5 36e59d539edf7808936a6586cb3f44e8
BLAKE2b-256 e64d35ea2c1023eeddac33b7c046049e592b9df844a0dcefa41573e5dba7ebf0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.1.0.180-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 558bdd7f43befc811798546979ee67305cfd09283eac08d9664e2b52135a18f1
MD5 4df50b18e0ca3f24dbbbc121759a338b
BLAKE2b-256 5239705aca23004ebc003b4c5bff14d49b054cec0f247b7a96ca8b6613280f5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-8.1.0.180-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3bfbd635770e91891e540c235a084cd168f3bf25720ed1e02308fa0341b2d759
MD5 3978293c04a6baf8b8a23f558dc82ec1
BLAKE2b-256 ba43ee0870ebcff9a2c8af4b86f36331680e8d4e82d213f535a1525215d5abdb

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