Answer the question
In order to leave comments, you need to log in
How to measure the channel occupied by an nginx virtual host?
Good day, gentlemen.
There is an nginx server that serves static files.
It runs several virtual servers.
I would like to know how much outgoing traffic each virtual server generates (on-line or in slices of 1-5 minutes).
Ideally, tie it to Zabbix.
Are there ready-made solutions or will you have to invent?
Thank you.
Answer the question
In order to leave comments, you need to log in
Count bytes by access logs. But there is a nuance. For example, if I request a large file and abort the download, this entry still gets into the access log with the full size of the file. Apache writes real bytes mod_log_io. I don't know about nginx.
Perhaps someone screwed nginx_vhost_traffic (https://github.com/joanpc/nginx_vhost_traffic)?
I think it will work for zabbix as well.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question