Live data from Hacker News

Show HN: Real-time, top-like metrics for Nginx

github.com

21–30 of 34 posts

Re: Show HN: Real-time, top-like metrics for Nginx

#21

Very 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…

> Several Linux distributions are now using Py3 as their main python

Only Arch Linux does it.

Re: Show HN: Real-time, top-like metrics for Nginx

#23
post #20
post #16

Earlier quoted context omitted.

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.

Doesn't seem to like to read the logs : ./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~

There was a bug that was overwriting --access-log (-l) option. Should be fixed now in master

Re: Show HN: Real-time, top-like metrics for Nginx

#25
post #3

Am 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.

You're seriously bothered about the robustness of a 2 hour old project?

Well, if you're announcing a project that monitors a performance critical part of your infrastructure, it seems fairly appropriate to performance test your product.

Re: Show HN: Real-time, top-like metrics for Nginx

#28
post #19

Very 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…

Unfortunately most of the servers I'm working with are still on python2 by default. The latest Ubuntu LTS, 12.04, only has python2 by default so python2 is still my priority. But in this case, a port should be trivia so I'll look into python3 as soon as possible. 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 :)

It's a release goal for 14.04 (due in about 30 days) to have no python2 software in the default desktop/server installs. Seems like there's still lots to be done though. https://wiki.ubuntu.com/Python/3
Post reply on HN