Is there any way to check how many gigabytes of traffic an heroku application has consumed?
To view application metrics, navigate to your app in the Heroku Dashboard and click the Metrics tab. Application metrics are available only to apps that are using hobby , professional ( standard-1x , standard-2x and performance ), or private dynos.
Set up an APM tool by installing a Heroku add-on. The Monitoring category includes APM tools like New Relic APM, Scout APM, and Solarwinds AppOptics. After you've provisioned the add-on and configured your app to use it, you can: Identify your slowest endpoints and look for opportunities to optimize them.
Use Heroku Connect to funnel data from your Salesforce instances into a Heroku Postgres database for easier archiving, reporting, and analytics using SQL tools.
You can view logs with the Heroku CLI, the dashboard, your logging add-on, or in your log drain. You can't view logs for apps in Shield spaces with Private Space Logging enabled. Retrieve logs from your log drain instead.
You could write a log parser to calculate the bandwidth used. Here is an example of the router log message
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
parse for each router line with a "bytes="
section and add up the bytes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With