Heroku to Grafana
Getting data from Heroku to Grafana has never been easier. Hosted Graphite offers a Heroku add-on that takes data from your Heroku app's logs, ships and ships it to the Hosted Graphite backend for storage and visualization - without ever leaving the Heroku interface. With one click you can have your Heroku data in a beautiful 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 their apps, and that's why Hosted Graphite published their Heroku Monitoring tool directly to the Heroku add-on 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 HG solution comes with Grafana as a part of the package, regardless of plan level. If you use the HG Heroku monitoring tool, you will have Grafana dashboards automatically created for you once you enter the platform. Check it out:

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 get your data from Heroku to Hosted Graphite to Hosted Grafana in one click. If you don't believe us, check out our blog post here.
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, GCP, and DigitalOcean metrics into your Hosted Graphite Heroku add-on account!
Forwarding Heroku metrics into Grafana
Installing and opening the Hosted Graphite monitoring add-on is as simple as issuing two commands from within your Heroku CLI:
- heroku addons:create hostedgraphite -a [app-name]
- heroku addons:open hostedgraphite -a [app-name]
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:

The best part about using Hosted Graphite Heroku Monitoring is the support. The HG engineering team can help you with anything you need related to getting your data from Heroku into Grafana. 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! With Hosted Graphite's Grafana, you can also create additional Data Sources and connect to your external instances of PostgreSQL, MQTT, Cloudwatch, RabbitMQ, InfluxDB, Prometheus, Victoria Metrics, and many more!

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. If you need a specific version of Grafana, we can deploy that for you. If you need a custom URL for your Grafana environment, we can do that for you too!
From Heroku to our 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.
The Hosted Graphite Heroku add-on is the easiest way to monitor your Heroku apps. Don't bother doing it yourself when you can get a hosted solution to do it for you!


.png)
