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

Uploaded Source

Built Distributions

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

newrelic-9.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (789.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

newrelic-9.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (788.2 kB view details)

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

newrelic-9.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (789.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

newrelic-9.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (787.6 kB view details)

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

newrelic-9.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (788.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

newrelic-9.2.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (787.2 kB view details)

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

newrelic-9.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (793.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

newrelic-9.2.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (791.9 kB view details)

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

newrelic-9.2.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (786.9 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ ARM64

newrelic-9.2.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (785.5 kB view details)

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

newrelic-9.2.0-cp27-cp27mu-manylinux2010_x86_64.whl (789.7 kB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.12+ x86-64

newrelic-9.2.0-cp27-cp27mu-manylinux1_x86_64.whl (789.7 kB view details)

Uploaded CPython 2.7mu

newrelic-9.2.0-cp27-cp27m-manylinux2010_x86_64.whl (789.7 kB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

newrelic-9.2.0-cp27-cp27m-manylinux1_x86_64.whl (789.7 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

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

File hashes

Hashes for newrelic-9.2.0.tar.gz
Algorithm Hash digest
SHA256 32395e1c6a97cc96427abaf4b274ccf00709613a68d18b51fc2c0711cda89bc7
MD5 c4eb223b759de83a9db3b2f2c27ac73d
BLAKE2b-256 b23cac34aa2927ed33b9de4e15b6fd9529b4b3dc92c1b9f0a3e3ea68ede637be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-9.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b1bddb5793117d91e130f2f93a86f5c3d9f29823329d35a38f8f64b738b3335e
MD5 1e6ca7a56ba4d50aa2b79ff3d6dff4a6
BLAKE2b-256 e559fb06c7b4bc2b23241be8da3fb23660f1adba21ea37b42d77759fec1df014

See more details on using hashes here.

File details

Details for the file newrelic-9.2.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-9.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c5b1edfc48c3d483d990bab28f268d64914f76180e057424914bb29e5bcfa927
MD5 bcffb885898351ea6bdf0c6c96733626
BLAKE2b-256 fe69d4594d2dc726280cb475458ec493587af26555bccb11d087a20c69917f61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-9.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d36cf6ad3cf1df3989dba9c8a5dbc36150dd1852ffeccdf6b957f21a2d5869c0
MD5 f348bf8ea972444ebbc36777d2b7dc2c
BLAKE2b-256 861b43faa9d41cc615c32b004942d03d34d6164572e8c2c1e0e806786503fd01

See more details on using hashes here.

File details

Details for the file newrelic-9.2.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-9.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 420f07d0ea1bfde21507e6a59c5714f3a0451d01ab08f5ef79dd42b4552ef5ac
MD5 4321ae2b5313d84f1eda29a4d9977b7e
BLAKE2b-256 2e2e6af9eb7e45a14374f617391dd50d80e4738e9f9c3cecb52e1c8d4ea767bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-9.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2911fb601b2a66eb0ab328342e0253889d94102c0b823f9dc5f6124917f9fbac
MD5 506236ae1310716c7fed1f29e10640d6
BLAKE2b-256 348bd1511bcb3d9fab3bc8bf427d21845e84b8686fe75cf66a004a0bc5917b74

See more details on using hashes here.

File details

Details for the file newrelic-9.2.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-9.2.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 88c799cb29e6b9c20fed50709edea6bc2b05fc5e40d0fd4d3fe2a37ae4352043
MD5 a17fb3dcd2e278bbe18a16aee4a359c4
BLAKE2b-256 f0807bd919b0e6880d06c00eb1d0269ac716bc8667cbbc90f6982a9366b74a95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-9.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d9db7dc6541a519acb327f9409c96f42faefb60748f0827c1dacce7613f88864
MD5 adc36b75e96a48fb75df09be58948546
BLAKE2b-256 1a6c5d49f22794933794c7719e9f93d9e72842932b72350d0a05ebeecd5afa13

See more details on using hashes here.

File details

Details for the file newrelic-9.2.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-9.2.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2a69115893ec53b1815b1041e231265abcf60d7d4c07ccc335b6146459e07ed
MD5 c9a021217dfbb843f3b3e1fc62e40a37
BLAKE2b-256 870157d8b6046df7ad8a4e042ac059d8b980d43fb314ef046e4caf474e90c4bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-9.2.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8f6c5065c434f8fb65e0e5a96a0e385be9baf5625e024cb9c87f345d966a9e5f
MD5 1e8fab9c93a1feff8df486d42ab0301d
BLAKE2b-256 91422f3e2bce7b11dd87da1ea496f5103ca410824ea2f9fc39968a03f36e597a

See more details on using hashes here.

File details

Details for the file newrelic-9.2.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-9.2.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b151f1830590cebb53ddf45462101a0ef59d91e28a46a1a652626dc0d4c0148d
MD5 a2fbc733dead1b4054f9ecc684072210
BLAKE2b-256 2e98917f0ab118dd378044c91345c6436f602ad0aec6c06bf84e3598396e53ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-9.2.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4139ef79e6abb7458edcf67f4ac0ce0b7dacbb58357f4d41716971fb15f778b6
MD5 70825f30b36c8fb7facd273102f9441a
BLAKE2b-256 d030140c79fdc2fcbc314334f750da88eb3096b00d1da86fda20ca537d722292

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-9.2.0-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2cfa86a5c3388490335385e0c8c155ee1f06d738282721bd05a8c7ceed33fd92
MD5 9abcc2c9c521b8aa6ffbdc9ee90807ff
BLAKE2b-256 2b0874bcb82354e87bc8f0213b631352008cb9f3f4945aa6724d18f64a5ab051

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-9.2.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 56df42fc26400d8ee1e324bfff40439399149b15fbeb8ffd532a96e54576e69c
MD5 759917d7a00fed69b473a4e15a8710c1
BLAKE2b-256 c7e6ae8f04d0da48af21f2dea39092f0119e698c3d95877a55f13df5c6ca313a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for newrelic-9.2.0-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 2b942eb9cfe8f62268e091d399d95a6762ef5fb90636839d61a30391efbcfbf0
MD5 27098e2e6dd0d2783511af62aac2110a
BLAKE2b-256 f7e25e2451d072e85035b9eba34f1984b901b07b70774e44be3c5377d6ce0d62

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