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.

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

Uploaded Source

Built Distributions

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

newrelic-6.4.3.160-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (697.2 kB view details)

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

newrelic-6.4.3.160-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701.2 kB view details)

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

newrelic-6.4.3.160-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (697.4 kB view details)

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

newrelic-6.4.3.160-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (694.3 kB view details)

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

newrelic-6.4.3.160-cp27-cp27m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (687.1 kB view details)

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

newrelic-6.4.3.160-cp27-cp27m-manylinux2010_x86_64.whl (687.1 kB view details)

Uploaded CPython 2.7mmanylinux: glibc 2.12+ x86-64

newrelic-6.4.3.160-cp27-cp27m-manylinux1_x86_64.whl (687.1 kB view details)

Uploaded CPython 2.7m

File details

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

File metadata

  • Download URL: newrelic-6.4.3.160.tar.gz
  • Upload date:
  • Size: 802.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for newrelic-6.4.3.160.tar.gz
Algorithm Hash digest
SHA256 c92a6b5f15ed901d002cc4f339546a509838e424843f6d67c0e3aac48c54efc2
MD5 445d7e59b56b6c973a0b30461c062beb
BLAKE2b-256 9bb329a18ecb3d567bc7db3253bbc73e5b2516de08937262eb67a99d3b3b8160

See more details on using hashes here.

File details

Details for the file newrelic-6.4.3.160-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-6.4.3.160-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 904035d4ec3d24a32fda913923fa30356c7b15c15542e12f4e7d2d85a73f5ccd
MD5 0427dd8b0b65b425530771858afc504f
BLAKE2b-256 85d512b3a032d5275e075dd751b496b4bcd331b34a68366db7d50c7693cbbd78

See more details on using hashes here.

File details

Details for the file newrelic-6.4.3.160-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-6.4.3.160-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9c00c95f94796b99038b63956d0e7482f161d546ce183b7e717191577e68c837
MD5 0db851c6681f53a39bc8359ffb432566
BLAKE2b-256 b1f6cc72f2b0321a6cc20b6894f53515feb1149fb66dcded691dba2b3735b3bd

See more details on using hashes here.

File details

Details for the file newrelic-6.4.3.160-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-6.4.3.160-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 031da3850cd3b980573e84a91d76a0e72e3da331e20f31e744d49b1a644262b5
MD5 f849f8736dd563bef42a3aac743f8c70
BLAKE2b-256 c55cfd508e39a707a716a35b5b5251e7d98d9d208a153a680476660960460178

See more details on using hashes here.

File details

Details for the file newrelic-6.4.3.160-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-6.4.3.160-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 99ad828de42eac17a301473fd5e1fe1cf1c2fe28c585fb21138a7cbd54d7f7f1
MD5 32ecd39e32fbb2293aecc01c40ddafae
BLAKE2b-256 fb94553f11fc1d47b9f5bb49082de3a8d82b64b345299ffe30883621d1d99800

See more details on using hashes here.

File details

Details for the file newrelic-6.4.3.160-cp27-cp27m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for newrelic-6.4.3.160-cp27-cp27m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4cdc205e39c7ba7227f4c7b7705bef2a4b1dcdf4b37a77595b9a536c0fca2a6a
MD5 09e6549433a53f173c3273ee836c6e73
BLAKE2b-256 292858ea838c38042cde37e15a7009c1bc46463b9b22db0c4f128f8f1839e7fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: newrelic-6.4.3.160-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 687.1 kB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for newrelic-6.4.3.160-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4582053dabeb369c4fedb6ba68fdb19b57a2d460a7df96e5b43a4440045376fc
MD5 4c6d0d2d714e2c0308686b9f336096fc
BLAKE2b-256 91bdd5ebac1c0744e1e304d0acdd56881038c2a2a7c3d8e1245a74010d14b1d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: newrelic-6.4.3.160-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 687.1 kB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for newrelic-6.4.3.160-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 95d9ee7caa97596c71a09afc522b4aeadef1038ffdf195ba309e7c9a69e0a3e0
MD5 9c0b9823769b19ae598b360e181722c4
BLAKE2b-256 38350dce82c769760e0e46af3b6e63474c47248c53026613491b459e30a7e3d5

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