Skip to content

aq/heroku_postgres_monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku Postgres Monitor

A simple Heroku app wrapper for newrelic_postgres_plugin. Send metrics from your Heroku Postgres instances to the NewRelic Platform.

Screenshot

Usage

Step 1:

Clone this repo and setup a new heroku application:

git clone git@github.com:GoBoundless/heroku_postgres_monitor.git
cd heroku_postgres_monitor
heroku create

Step 2:

Copy config vars from your app into the monitor app:

heroku config:set $(heroku config --shell --app other-app-name | egrep 'NEW_RELIC_LICENSE_KEY|postgres://')

Feel free to add as many Heroku Postgres instance URLs as you wish. You will need to run this command again after scaling or adding any databases.

Step 3:

Deploy to Heroku

git push heroku master
heroku ps:scale worker=1 web=0

Done! You should start to see data coming into your NewRelic dashboard as soon as the deploy is finished.

About

Heroku Postgres Monitor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%