Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以检查 Heroku 应用程序消耗了多少 GB 的流量?
您可以编写一个日志解析器来计算使用的带宽。这是路由器日志消息的示例
2013-03-27T04:02:21+00:00 heroku[router]: at=info method=GET path=/ host=somehost.herokuapp.com fwd="1.1.1.1" dyno=web.1 connect=1ms service=35ms status=200 bytes=49
用一个部分解析每个路由器线路"bytes="并将字节相加。
"bytes="