Nginx VTS/STS Performance Metrics
Performance metrics for Nginx by Very Good Security
1. Nginx has to be compiled with these 4 plugins
nginx -V
# other stuff
--with-http_stub_status_module
--add-module=/usr/src/nginx-module-vts
--add-module=/usr/src/nginx-module-sts
--add-module=/usr/src/nginx-module-stream-sts
these modules can be found here:
- https://github.com/vozlt/nginx-module-vts
- https://github.com/vozlt/nginx-module-sts
- https://github.com/vozlt/nginx-module-stream-sts
2. Nginx config should looks similar to this:
server {
listen 127.0.0.1:80;
server_name 127.0.0.1;
allow 127.0.0.1;
deny all;
# default nginx's metrics
location /nginx_status {
stub_status;
}
location /http_traffic_status {
vhost_traffic_status_bypass_limit on;
vhost_traffic_status_bypass_stats on;
vhost_traffic_status_display;
vhost_traffic_status_display_format html;
}
location /stream_traffic_status {
stream_server_traffic_status_display;
stream_server_traffic_status_display_format html;
}
}
Data source config
Collector config:
Upload an updated version of an exported dashboard.json file from Grafana
Revision | Description | Created | |
---|---|---|---|
Download |
NGINX
Easily monitor NGINX, an open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more, with Grafana Cloud's out-of-the-box monitoring solution.
Learn more