Welcome! Log In Create A New Profile

Advanced

Track egress bandwidth for a server block

Posted by justink101 
justink101
Track egress bandwidth for a server block
November 13, 2017 11:10AM
Is there a way to measure and store the amount of egress bandwidth in GB a
given server{} block uses in a certain amount of days? Needs to be somewhat
performant. Using NGINX Unit or Lua are both possible, just no idea how to
implement it.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277303,277303#msg-277303

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Reinis Rozitis
RE: Track egress bandwidth for a server block
November 13, 2017 11:40AM
> Is there a way to measure and store the amount of egress bandwidth in GB a
> given server{} block uses in a certain amount of days? Needs to be somewhat
> performant. Using NGINX Unit or Lua are both possible, just no idea how to
> implement it.

Take a look at https://github.com/vozlt/nginx-module-vts

rr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
justink101
Re: RE: Track egress bandwidth for a server block
November 13, 2017 08:10PM
Thanks for linking, but nginx-module-vts seems over-kill and I'm concerned
about performance. Essentially we are building a product that charges by
egress bandwidth and looking for a way to track it at the NGINX level. I was
digging a bit further and it seems like using
https://www.nginx.com/blog/launching-nginscript-and-looking-ahead/ might be
a good solution. Anybody tried this? Anybody have a starting point
configuration?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277303,277313#msg-277313

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login