Measure SAAS App Bandwidth Usage

眉间皱痕 提交于 2019-12-02 05:57:35

问题


I am in the process of building a Ruby on Rails based SaaS app. The app is being hosted on AWS (Amazon).

I need to measure the bandwidth usage by each customer for billing and customer segmenting. The customers could be identified by their Urls. like customer1.myapp.com or mycustomer.com

Can somebody suggest the best way to accomplish this? Any tools or simple hacks would be appreciated.


回答1:


Assuming you are fronting your Rails app with Nginx or Apache, you could use a log format that includes the vhost, then pull out the bytes transferred and the vhost from the log lines (nightly, monthly, or whatever). Add up the bytes, grouping by vhost, and there you go.




回答2:


My suggestion is New Relic - http://newrelic.com/




回答3:


Need the same. Do by this way: bandwidth management with rails?

All using only the Rails App.



来源:https://stackoverflow.com/questions/9694953/measure-saas-app-bandwidth-usage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!