Package: newrelic
New Relic Python AgentThenewrelicpackage instruments your application for performance monitoring and advanced performance analytics withNew Relic.Pinpoint and solve Python application performance issues down to the line of code.New Relic APMis 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.VisitPython Application Performance Monitoring with New Relicto learn more.UsageThis package can be installed via pip:$pipinstallnewrelic(These instructions can also be found online:Python Agent Quick Start.)Generate the agent configuration file with yourlicense key.$newrelic-admingenerate-config$YOUR_LICENSE_KEYnewrelic.iniValidate the agent configuration and test the connection to our data collector service.$newrelic-adminvalidate-confignewrelic.iniIntegrate 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 thenewrelic-adminwrapper script. Modify the existing startup script, prefixing the existing startup command and options withnewrelic-adminrun-program.Also, set theNEW_RELIC_CONFIG_FILEenvironment variable to the name of the configuration file you created above:$NEW_RELIC_CONFIG_FILE=newrelic.ininewrelic-adminrun-program$YOUR_COMMAND_OPTIONSExamples:$NEW_RELIC_CONFIG_FILE=newrelic.ininewrelic-adminrun-programgunicorn-cconfig.pytest_site.wsgi$NEW_RELIC_CONFIG_FILE=newrelic.ininewrelic-adminrun-programuwsgiuwsgi_config.iniAlternatively, you can alsomanually integrate the agentby adding the following lines at the very top of your python WSGI script file. (This is useful if you’re usingmod_wsgi.)importnewrelic.agentnewrelic.agent.initialize('/path/to/newrelic.ini')Start or restart your Python web application or WSGI server.Done! Check your application in theNew Relic UIto see the real time statistics generated from your application.Additional resources may be found here:New Relic for Python DocumentationNew Relic for Python Release NotesSupportShould you need assistance with New Relic products, you are in good hands with several support diagnostic tools and support channels.Thistroubleshooting frameworksteps you through common troubleshooting questions.New Relic offers NRDiag,a client-side diagnostic utilitythat 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 ChannelsNew Relic Documentation: Comprehensive guidance for using our platformNew Relic Community: The best place to engage in troubleshooting questionsNew Relic Developer: Resources for building a custom observability applicationsNew Relic University: A range of online training for New Relic users of every levelNew Relic Technical Support24/7/365 ticketed support. Read more about ourTechnical Support Offerings.PrivacyAt 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 reviewNew Relic’s General Data Privacy Noticefor more information.Product RoadmapSee ourroadmap, to learn more about our product vision, understand our plans, and provide us valuable feedback.ContributingWe 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 atopensource@newrelic.com.A note about vulnerabilitiesAs noted in oursecurity 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 throughHackerOne.LicenseThe New Relic Python Agent is licensed under theApache 2.0License. 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.