Uses Heroku's unofficial buildpack.
More configuration to get it to actually deploy to Heroku. I've blogged about this here: https://rohitmacherla.com/installing-prometheus-on-heroku. Perhaps you'd like to look at some advanced monitoring techniques for Salesforce.com as part of the blog series?
-
Login to Heroku via CLI
-
Run
heroku create --buildpack https://github.com/heroku/heroku-buildpack-prometheus.git
-
It will create a Heroku app, sets the buildpack and gives us a git URL for the repo like this:
Creating app... done, ⬢ shielded-beach-38076 Setting buildpack to https://github.com/heroku/heroku-buildpack-prometheus.git... done https://shielded-beach-38076.herokuapp.com/ | https://git.heroku.com/shielded-beach-38076.git
-
Copy the Heroku git repo URL. In our example, that's
https://git.heroku.com/shielded-beach-38076.git
-
Clone the current repo to your local machine
git clone https://github.com/markgarg/sample-prometheus-on-heroku.git
-
Add the Heroku git repo URL as a remote:
git remote add heroku https://git.heroku.com/shielded-beach-38076.git
-
You will now have two remotes: one for origin (the git repo where you develop) and one for Heroku (that it uses to deploy your app)
-
Push the current repo to Heroku remote:
git push heroku master
-
That's it, you've now got a running Prometheus that is deployed to Heroku! Open the app from UI or from CLI using
heroku open
.