Monitoring Heroku Metrics On An Existing HostedGraphite Account

If you already have an existing Hostedgraphite account or you intend to create a Hostedgraphite account for monitoring metrics other than Heroku metrics, log into your existing HostedGraphite account, or create a HostedGraphite account, and get the API key.

After that you can just point your Heroku app logs to your existing HostedGraphite account:

$ heroku drains:add https://webhooks.hostedgraphite.com/heroku//logs/?apikey=<api_key>

Upload this JSON file to your Grafana dashboard, and you will see all your Heroku metrics instantly.

Menu item to import a new Grafana dashboard

Menu item to import a new Grafana dashboard

Paste the dashbaord template and click load

Paste the dashbaord template and click load

Monitoring Other Heroku Metrics

To send metrics from Heroku other than the standard application metrics, enable the use of log runtime metrics:

$ heroku labs:enable log-runtime-metrics

After enabling runtime metrics, you will need to restart Heroku:

$ heroku restart

Then, add your HostedGraphite webhook:

$ heroku drains:add https://webhooks.hostedgraphite.com/heroku/<appname>/logs/?apikey=<api_key>