Heroku to Grafana

November 19, 2020

Heroku to Grafana

Getting data from Heroku to Grafana has never been easier. Hosted Graphite 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 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 its 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 our Heroku monitoring tool, you will get Grafana dashboards automatically built for you once you enter the platform. Check it out:

Screenshot of Hosted Graphite's auto generaged Heroku Dashboard

Getting data out of Heroku

With the Hosted Graphite Heroku monitoring add-on, 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:

Screenshot example of a customer built Heroku Dashbaord in Hosted Graphite

Preparing Heroku data

With the Hosted Graphite Heroku monitoring add-on, 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 the Heroku automatic dashboard is added to your account, you can start to customize the dashboards to show the data you're interested in. You can even pull AWS, Azure and GCP metrics into your Hosted Graphite Heroku add-on account!

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 time-series 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 Hosted Graphite Heroku Monitoring is the support. The Hosted Graphite team can help you with anything you need related to getting 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 Hosted Graphite Heroku Add-On account!

Keeping your 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 the Hosted Graphite Heroku add-on. Your data storage is a part of the service. We provide retention of data for up to 2 years included in your monthly subscription. Your data is available to you at any time - with no vendor lock-in. You can also query your data with PostgreSQL, and even export it to other locations if needed.

The Hosted Graphite Heroku add-on 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