Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check Heroku incoming and outgoing traffic

Is there any way to check how many gigabytes of traffic an heroku application has consumed?

like image 230
vascop Avatar asked Aug 26 '12 18:08

vascop


People also ask

How do I check my traffic on Heroku app?

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.

How do I monitor Heroku?

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.

Does Heroku have analytics?

Use Heroku Connect to funnel data from your Salesforce instances into a Heroku Postgres database for easier archiving, reporting, and analytics using SQL tools.

How do I view Heroku logs?

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.


1 Answers

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.

like image 136
sorens Avatar answered Sep 23 '22 09:09

sorens