Heroku to Grafana

November 19, 2020

Heroku to Grafana

Getting data from Heroku to Grafana has never been easier. HG Heroku Monitoring is a Heroku add-on that takes data from your Heroku app and immediately visualizes it in Grafana - without ever leaving the Heroku interface. With one click you can have your Heroku data in a Grafana dashboard.

What is Heroku?

Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud. Heroku users need to monitor apps, and that's why Hosted Graphite published their HG Heroku Monitoring tool directly to the Heroku addon marketplace. Now getting data from Heroku to Grafana is something you can do in seconds.

What is Grafana?

Grafana is an open source visualization tool. At it's core, it's a platform for pulling data in from multiple data sources. Hosted Graphite also runs a Hosted Grafana solution, and every Hosted Graphite solution comes with Grafana as a part of the package. If you use the HG Heroku monitoring tool, you will get Grafana dashboards automatically built for you once you enter the platform. Check it out:

Getting data out of Heroku

With HG Heroku monitoring, there's no need to get your data out of Heroku. You can set up your Heroku dashboards and get your data from Heroku to Grafana in one click. If you don't believe us, check out our blog post here.

Sample Heroku data

Our customers are always monitoring Heroku data in Grafana, and they've built some great dashboards. Check out another example dashboard here:

Preparing Heroku data

With Hg Heroku monitoring, you don't need to do any preparation for your data. The add-on will know which data to pipe into the app to get you started. After you first dashboard, you can start to customize the dashboards to show the data you're interested in. You can even pull AWS metrics into your HG Heroku monitoring tool!

Loading data into Grafana

Installing the add-on is as simple as issuing the command:

$ heroku addons:add hostedgraphite
-----> Adding hostedgraphite to sharp-mountain-4005... done, v1

Once installed, this add-on will make a new application configuration key available, called HOSTEDGRAPHITE_APIKEY. Confirm the key by issuing the command:

$ heroku config:get HOSTEDGRAPHITE_APIKEY
abcdef-abcd-dcba-abcd-abcdefabcd

In your local development environment, it will be necessary to replicate this configuration. Since the Foreman tool will look in the .env file for development environment variables, use the following command to copy HOSTEDGRAPHITE_APIKEY from the heroku config (Do not check the file .env into source control).

$ heroku config -s | grep HOSTEDGRAPHITE_APIKEY >> .env
$ more .env


Analyzing data in Grafana

Grafana prepares you to analyze data with ease. You can build dashboards with several different kinds of panels, and you can run alerts and timeseries forecasting. Check out some of our resources here on Grafana:

  1. Grafana Dashbaords from Basic to Advanced
  2. Grafana alerting
  3. Grafana plugins

The best part about using HG Heroku Monitoring is the support. HG Heroku monitoring can help you with anything you need related to getting from your data from Heroku to Grafana. We are staffed with support engineers responding to customer inquiries all the time. If you have any questions about Heroku monitoring, just reach out to us in the intercom chat inside the HG Heroku monitoring app!

Keeping Heroku data up to date

With the HG Heroku monitoring tool, you don't need to worry about keeping your data up to date, and you don't need to worry about maintaining your Grafana installation. We take care of everything for you as a part of the natural maintenance of the service.

From Heroku to your data warehouse: An easier solution

You don't need to worry about data warehouses, databases or maintaining a storage solution when you use HG Heroku monitoring. Your data storage is a part of the service, and the retention of data up to 1 year is included in your monthly subscription. Your data is available to you at any time - with no vendor lock in. You can query your data with PostgresQL, and even export it to other locations if needed.

HG Heroku monitoring is the easier way to handle your Heroku metrics. Don't bother doing it yourself when you can get a hosted solution to do it for you.


Related Posts

No items found.

See why thousands of engineers trust Hosted Graphite with their monitoring

START A FREE TRIAL