Heroku Real-time Monitoring

Monitoring

If you’re running applications on Heroku, you can start monitoring your metrics without adding another complex toolchain. Activate MetricFire’s Hosted Graphite Heroku add-on to collect metrics from your app logs, visualize them in Grafana dashboards, and set up service-level alerts for the signals that matter most to your application.

Get started with the Heroku Hosted Graphite add-on and turn your Heroku metrics into actionable dashboards and alerts: https://elements.heroku.com/addons/hostedgraphite

Heroku offers many monitoring tools that include, but are not limited to:

  • Logging tools - collecting and storing your Heroku app and database logs.
  • Error monitoring tools - capturing exceptions and errors thrown by your app.
  • Real-time Monitoring tools - showing metrics on app performance
  • Bonus tip: Installing the HG Heroku Monitoring Add-on

Logging tools


Logging can provide you with up-to-date data on various metrics of your apps and databases. Database monitoring plays a crucial role in the success of a product. Curious readers can check out this article on Monitoring MongoDB Performance posted on MetricFire’s Blog.


A screenshot of various logging management tools

Error monitoring tools. 

Once you have a logging add-on, it is a good idea to install an error monitoring tool. Error monitoring tools capture exceptions or errors thrown by your app, whether they originate from your code, dependencies, or a framework. 

A screenshot of various Errors and Exceptions management tools

Real-time Monitoring Tools


Now when it comes to real-time monitoring, Heroku threshold alerting is a must-have in your monitoring portfolio. It provides you lightning-fast notice of performance issues, so you can resolve it before it causes downtime. You can set up threshold alerting for an app by enabling it in the Heroku dashboard.


A screenshot of Heroku's monitoring dashboard

Installing the Heroku Hosted Graphite Add-On. 

A screenshot of Hosted Graphite's auto generated Heroku Dashboard

Hosted Graphite provides a complete infrastructure and application monitoring platform from a suite of open source monitoring tools, allowing you to view metrics on beautiful Grafana dashboards in real-time. Hosted Graphite offers a wide range of tools, add-ons, and plugins which make it possible to measure, analyze, and visualize large amounts of data about your applications with ease. 

Install the Heroku Hosted Graphite add-on on your Heroku Apps and metrics are automatically ingested, while useful Dashboards are automatically created. From your Heroku app's log stream, performance data is ingested and stored for the following Heroku services:

  • Router (request traffic, response times, HTTP methods/status codes)
  • Dynos (CPU load, memory usage)
  • Postgres/Redis/Kafka (server/DB statistics)
  • Processes (schedulers, workers, releases, runs)
  • Heroku Connect (sync activity and performance)

See more details in the official Hosted Graphite Heroku documentation.

A screenshot Hosted Graphite's main page with an arrow pointing to Grafana in the Dashboards tab on the side navbar
A screenshot of Grafana with an arrow pointing to the import feature in the Create tab on the side navbar


Then download this json file, and import it into the dashboard. Your Heroku Monitoring Dashboard should load right away!

A screenshot of Grafana's import page with an arrow pointing 'Upload .json file'
A screenshot of a Heroku dashboard after a json file has been imported to Grafana

If you want to learn more about how to use this add-on with your Heroku app  book a demo with one of our engineers 

Try Hosted Graphite now!

Get Hosted Graphite free for 14 days. No credit card required.

Get Started

Related Posts

See why thousands of engineers trust Hosted Graphite with their monitoring

START A FREE TRIAL