HITGIF / prometheus-on-heroku

An example repo that deploys Prometheus to Heroku

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample repo to host Prometheus on Heroku

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?

Installation

Simplest option:
Deploy

or you can do it manually:

  1. Login to Heroku via CLI

  2. Run

    heroku create --buildpack https://github.com/heroku/heroku-buildpack-prometheus.git
  3. 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
  4. Copy the Heroku git repo URL. In our example, that's https://git.heroku.com/shielded-beach-38076.git

  5. Clone the current repo to your local machine git clone https://github.com/markgarg/sample-prometheus-on-heroku.git

  6. Add the Heroku git repo URL as a remote:

    git remote add heroku https://git.heroku.com/shielded-beach-38076.git
  7. 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)

  8. Push the current repo to Heroku remote:

    git push heroku master
  9. 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.

About

An example repo that deploys Prometheus to Heroku

License:MIT License


Languages

Language:Procfile 100.0%