lebinh/ngxtop là một trong những repo hướng lập trình viên mà TopGit theo dõi, hiện có 6.5k sao, viết chủ yếu bằng Python. Real-time metrics for nginx server
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
================================================================
ngxtop - real-time metrics for nginx server (and others)
ngxtop parses your nginx access log and outputs useful, top-like, metrics of your nginx server.
So you can tell what is happening with your server in real-time.
``ngxtop`` is designed to run in a short-period time just like the ``top`` command for troubleshooting and monitoring
your Nginx server at the moment. If you need a long running monitoring process or storing your webserver stats in external
monitoring / graphing system, you can try `Luameter <https://luameter.com>`_.
ngxtop tries to determine the correct location and format of nginx access log file by default, so you can just run
ngxtop and having a close look at all requests coming to your nginx server. But it does not limit you to nginx
and the default top view. ngxtop is flexible enough for you to configure and change most of its behaviours.
You can query for different things, specify your log and format, even parse remote Apache common access log with ease.
See sample usages below for some ideas about what you can do with it.
Installation
::
pip install ngxtop
Note: ngxtop is primarily developed and tested with python2 but also supports python3.
Usage
::
Usage:
ngxtop [options]
ngxtop [options] (print|top|avg|sum) <var>
ngxtop info
Options:
-l <file>, --access-log <file> access log file to parse.
-f <format>, --log-format <format> log format as specify in log_format directive.
--no-follow ngxtop default behavior is to ignore current lines in log
and only watch for new lines as they are written to the access log.
Use this flag to tell ngxtop to process the current content of the access log instead.
-t <seconds>, --interval <seconds> report interval when running in follow mode [default: 2.0]
-g <var>, --group-by <var> group by variable [default: request_path]
-w <var>, --having <expr> having clause [default: 1]
-o <var>, --order-by <var> order of output for default query [default: count]
-n <number>, --limit <number> limit the number of records included in report for top command [default: 10]
-a <exp> ..., --a <exp> ... add exp (must be aggregation exp: sum, avg, min, max, etc.) into output
-v, --verbose more verbose output
-d, --debug print every line and parsed record
-h, --help print this help message.
--version print version information.
Advanced / experimental options:
-c <file>, --config <file> allow ngxtop to parse nginx config file for log format and location.
-i <filter-expression>, --filter <filter-expression> filter in, records satisfied given expression are processed.
-p <filter-expression>, --pre-filter <filter-expression> in-filter expression to check in pre-parsing phase.
Supported log formats: combined (default), common, caddy (for Caddy JSON access logs)
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/lebinh/ngxtop là nguồn chính thức.
lebinh/ngxtop có những chủ đề gì?
GitHub topics của lebinh/ngxtop: "cli", "monitoring", "nginx". TopGit xếp repo vào nhóm Developer Tools.
lebinh/ngxtop có phải mã nguồn mở không?
Có — lebinh/ngxtop phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/lebinh/ngxtop.
lebinh/ngxtop có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho lebinh/ngxtop. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
lebinh/ngxtop còn đang phát triển không?
Commit gần nhất trên lebinh/ngxtop là 8 tháng trước (theo timestamp GitHub). Repo có 472 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
lebinh/ngxtop dùng license gì?
lebinh/ngxtop phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
Đọc đầy đủ README ở tab phía trên.
ngxtop có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về ngxtop.