VTS#
This is a set of modules that collect traffic statistics in real time:
To install the module, use one of the following packages: Angie: Angie PRO: Loading the modules in the HTML page templates are installed in the To work with the configuration example below, you need to: Copy In the and replace Version: v0.2.7 / v0.1.1 / v0.1.1 Detailed documentation and source code are available at:
vozlt/nginx-module-vts.module-vts for HTTP virtual hosts, upstreams, and caches, and
module-stream-sts for stream servers, with module-sts showing the
stream statistics over HTTP. The statistics are available on a status page as
JSON or as HTML dashboards built from ready-made templates.Installation#
angie-module-vtsangie-pro-module-vtsLoading Modules#
main{} context:load_module modules/ngx_http_stream_server_traffic_status_module.so;
load_module modules/ngx_http_vhost_traffic_status_module.so;
load_module modules/ngx_stream_server_traffic_status_module.so;
Preparing for Demonstration#
/usr/share/angie-module-vts/ directory:/usr/share/angie-module-vts/status.compress.html/usr/share/angie-module-vts/status.template.html/usr/share/angie-module-vts/stream/status.compress.html/usr/share/angie-module-vts/stream/status.template.html/usr/share/angie-module-vts/status.template.html to
/usr/share/angie-module-vts/status.html:$ cp /usr/share/angie-module-vts/status.template.html \
/usr/share/angie-module-vts/status.html
/usr/share/angie-module-vts/status.html file, find the line:var vtsStatusURI = "{{uri}}/format/json", vtsUpdateInterval = 1000;
{uri} with /status.Configuration Example#
http {
# ...
vhost_traffic_status_zone;
server {
listen 80;
server_name localhost;
root /usr/share/angie/html;
index index.html index.htm;
location = /status.html {
root /usr/share/angie-module-vts;
}
location /status {
vhost_traffic_status_display;
vhost_traffic_status_display_format html;
}
}
}
Additional Information#