Troubleshooting

Introduction to New Relic for Python

New Relic for Python monitors your Python application to help you identify and solve performance issues. You can also extend your performance monitoring to collect and analyze business data to help you improve the customer experience and make data-driven business decisions. With flexible options for custom instrumentation and APIs, New Relic for Python offers multiple building blocks to customize the data you need from your app.

Install New Relic

New Relic supports a number of web frameworks and libraries right out of the box, including Django, WSGI, and Gunicorn. If you use one of the supported web frameworks, installation is easy. If you use an unsupported framework, the process will involve some additions to your app code and/or web server files.

Here's an overview of the major install steps:

Download and install the New Relic package

Create config file

Integrate the New Relic agent with your application

For a quick and simple install process that will work for the majority of setups, see the Quick Start guide.

Monitor non-web scripts, background tasks, and functions

New Relic for Python also lets you monitor non-web scripts, worker processes, tasks, and functions. The installation process for these non-web transactions is similar to the one used for a web app, with one major difference: instead of going through the standard integration process described in the install instructions, you would manually "wrap" any function you want to monitor. For more information, see Non-web tasks and processes. For instructions on monitoring Celery tasks, see Celery background tasks.

What's next after installation?

Once you get New Relic up and running, some suggested next steps are:

Explore your data in New Relic and get comfortable with the user interface.