Web2py is an open source framework for creating web-based Python applications. You can integrate New Relic with your Web2py app to monitor your app's performance. For general install procedures, see Install New Relic for Python.
Integrate with Web2py
Choose the Web2py set-up you use from the list below for more information:
- Runweb2py command
If you run your web application using the runweb2py command, use the following command:
NEW_RELIC_CONFIG_FILE=/some/path/newrelic.ini newrelic-admin run-program runweb2py
newrelic-adminis a script that wraps your application startup, so that New Relic can monitor your application's major functions. For more on running the wrapper script, see Running the wrapper script.
When using Apache/mod_wsgi, you must manually insert code in the WSGI script file you are using in order to initialize the New Relic Python agent. For more info, see the New Relic mod_wsgi documentation.
For information on using Gunicorn with New Relic, see Python agent and Gunicorn documentation.
For information on using uWSGI with New Relic, see the Python agent and uWSGI documentation.
For general install procedures, see Install the New Relic Python agent.
For more help
Additional documentation resources include: