Side question: I saw a project similar to this, but display top in your terminal/browser with a beautiful visual dashboard. I remember seeing it here on HN recently but I can't find it. I mention that because it has a non-ascii visual component. I am interested in looking at the two source codes and see if I could make pretty dashboard out of it... EDIT : Thanks for finding the, HNers. I also think it is possible to…
Fulfills the browser aspect of the question...this? http://scoutapp.github.io/scout_realtime/
Show HN: Real-time, top-like metrics for Nginx
11–20 of 34 posts
Re: Show HN: Real-time, top-like metrics for Nginx
#12Am I the only one that bothered when tools like this do not give you some insight on resource consumption/limit? Even if it's just parsing logs via sqlite, I still want to see the limitations and X per Y usage metrics to see if it can handle monitoring high traffic domain without impacting performance.
Re: Show HN: Real-time, top-like metrics for Nginx
#13Installation instructions would be a nice plus
Re: Show HN: Real-time, top-like metrics for Nginx
#14Re: Show HN: Real-time, top-like metrics for Nginx
#15This is nice, congrats! Would also like some performance metrics, or at least exec time per script
Re: Show HN: Real-time, top-like metrics for Nginx
#16Looks cool! Installation instructions would be a nice plus
pip install -r requirements.txt
to install required dependencies.
Re: Show HN: Real-time, top-like metrics for Nginx
#17This is nice, congrats! Would also like some performance metrics, or at least exec time per script
If what you mean by exec time is request_time, i.e., serving time of a request, then it's pretty close on my agenda as long as you have it in your access log :)
Re: Show HN: Real-time, top-like metrics for Nginx
#18On a different note... developers, please use Python 3. Several Linux distributions are now using Py3 as their main python and those scripts with an "env python" hashbang will not work.
Porting your codebase to be python 2+3 compatible is dead simple, and most of the time it is just a matter of using print("foo") instead of print "foo". So please be considerate.
Re: Show HN: Real-time, top-like metrics for Nginx
#19Very cool tool. It seems to be clearing the screen every time it runs though which isn't great, especially when it crashes that hides the backtrace. Consider using ncurses? On a different note... developers, please use Python 3. Several Linux distributions are now using Py3 as their main python and those scripts with an "env python" hashbang will not work. Porting your codebase to be python 2+3 compatible is dead sim…
Yes, ncurses would be much better but I haven't had time for it yet. Clearing screen is simple enough and work pretty well for me so far so here we are :)
Re: Show HN: Real-time, top-like metrics for Nginx
#20Looks cool! Installation instructions would be a nice plus
Thanks, I'll definitely add that, maybe put this on pypi asap. For now you can clone the repo and then run pip install -r requirements.txt to install required dependencies.
./ngxtop.py -l /opt/nginx/logs/access.log ## just pretends like the log is not being written to
For some reason the access log file is defaulted to logs/access.log too~