jnhasty / uwsgi-newrelic Goto Github PK
View Code? Open in Web Editor NEWuWSGI upstart example (with new relic support)
uWSGI upstart example (with new relic support)
Hey! I stumbled upon your blog post and this repo when trying to set up new relic on my own uWSGI app, but I haven't been able to succeed.
I've set newrelic.ini to log to stderr so it 'should' log to my uwsgi log file, although I got it to log an error message in there once, but I haven't been able to make it do it again, since.
Maybe if you have a few minutes you could have a look at my config and let me know if you see any obvious mistakes?
Thanks in advance.
I use uWSGI in emperor mode hence the config below
Hi
Thanks for this package, but how can I access to uwsgi.conf
file?
I'm using NginX
+ uwsgi
+ django
In your example you have:
env NEW_RELIC_CONFIG_FILE=/path/to/newrelic.ini
exec newrelic-admin run-program /usr/local/bin/uwsgi --ini /path/to/uwsgi.ini
This will not work, or if it works on some systems, doesn't work on others.
We have had to correct this with a few users. You should use:
NEW_RELIC_CONFIG_FILE=/path/to/newrelic.ini
export NEW_RELIC_CONFIG_FILE
exec newrelic-admin run-program /usr/local/bin/uwsgi --ini /path/to/uwsgi.ini
The need to set and export variables like this is given in the New Relic documentation:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.